Author Topic: little problem => CLICK HERE <=  (Read 2067 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
little problem => CLICK HERE <=
« on: February 11, 2012, 03:27:20 am »
How can i get the playerid ?  :-\

if i use " for(new i = 0; i <= MAX_PLAYERS; i++) "

is for all players... but how is just for one player ?
« Last Edit: February 11, 2012, 10:29:49 am by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline RasikhQadeer

  • Street Thug
  • *
  • Posts: 49
  • Hero_Great! The Great Scripter!
    • View Profile
Re: little problem => CLICK HERE <=
« Reply #1 on: February 11, 2012, 01:02:27 pm »
I think you have to define it 1 by 1 number to get the single playerid other wise like pickups new sp=0 and then sp++ we cant use a function to it that if pickup id == ?what sp++ then it will use the same function to all the opickups so i thin u have to define 1 by 1

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: little problem => CLICK HERE <=
« Reply #2 on: February 11, 2012, 05:38:23 pm »
How can i get the playerid ?  :-\

if i use " for(new i = 0; i <= MAX_PLAYERS; i++) "

is for all players... but how is just for one player ?
Actually I wanted to helped you before Rasikh replied but I went blank.. Anyways, if your meaning to check if a single player among all, you have to use [pawn]   if( /*What you want to check here */ ) == /*True or False*/
   {
       //Code to be executed
      return 1;
   }[/pawn]
I'm not sure if there should be a break or something. But this is what I had in mind.. However, if your meaning setting a timer to a specific person with that function, I suggest don't. It will bug the server and cause lag!!
I'm beginning to feel like a Lag God, Lag God