[SOLVED]Playerid Param
#1

Can someone tell me how to make a playerid param, "loop through the playerid"?
Reply
#2

What you mean?

This is loop
pawn Код:
for(new i=0;i<MAX_PLAYERS<i++;)
{
    //effect, example Kick(i); // will kick all players on the server
}
This is param
pawn Код:
new playa;
sscanf(params,"u",playa);
Reply
#3

Quote:
Originally Posted by Luka™
What you mean?

This is loop
pawn Код:
for(new i=0;i<MAX_PLAYERS<i++;)
{
    //effect, example Kick(i); // will kick all players on the server
}
This is param
pawn Код:
new playa;
sscanf(params,"u",playa);
Thnx, its the loop that i wanted
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)