Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: sseebbyy on February 11, 2012, 03:27:20 am

Title: little problem => CLICK HERE <=
Post by: sseebbyy 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 ?
Title: Re: little problem => CLICK HERE <=
Post by: RasikhQadeer 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
Title: Re: little problem => CLICK HERE <=
Post by: Fuzzy168 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!!