01.04.2011, 20:31
the title say all...
for(new i=0; i < MAX_PLAYERS && i != playerid; i++)
{
SetPlayerHealth(i,0.0);
}
CMD:killall(playerid, params[])
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SetPlayerHealth(i, 0.0);
SendClientMessage(playerid, -1, "All players have been killed.");
}
return 1;
}
command(banall,playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"Not an admin...");
for(new i = 0; i<MAX_PLAYERS; i++)
{
Ban(i);
}
return 1;
}
command(kickall,playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"Not an admin...");
for(new i = 0; i<MAX_PLAYERS; i++)
{
Kick(i);
}
return 1;
}
SendClientMessage(playerid,0xFFFFFFFF,"Here's a message.");
native Say(message,colour);
stock Say(message,colour)
{
somthing...
return 1;
}