[SOLVED]Playerid Param - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED]Playerid Param (
/showthread.php?tid=109592)
[SOLVED]Playerid Param -
Tigerbeast11 - 21.11.2009
Can someone tell me how to make a playerid param, "loop through the playerid"?
Re: Playerid Param -
Luka P. - 21.11.2009
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);
Re: Playerid Param -
Tigerbeast11 - 21.11.2009
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