01.04.2011, 15:56
Hi, I am new in scripting and I would like if somebody could tell me how to make a command to kill all players except player that wrote the command.
Thank you.
Thank you.
CMD:killall(playerid,params[])
{
for(new i=0; i != playerid; i++ )
{
SetPlayerHealth(i,0.0);
}
return 1;
}
CMD:killall(playerid,params[])
{
for(new i=0; i < MAX_PLAYERS && i != playerid; i++ )
{
SetPlayerHealth(i,0.0);
}
return 1;
}