[HELP] /killall - 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: [HELP] /killall (
/showthread.php?tid=198749)
[HELP] /killall - Larsey123IsMe - 13.12.2010
When i type "/killall" it kills all players and it sais "SERVER: Unknown Command"
how to remove the "SERVER: Unknown Command" when i type "/killall"
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/killall", cmdtext, true, 10) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
SetPlayerHealth(i,0);
}
}
return 0;
}
Re: [HELP] /killall -
admantis - 13.12.2010
Quote:
Originally Posted by Larsey123IsMe
When i type "/killall" it kills all players and it sais "SERVER: Unknown Command"
how to remove the "SERVER: Unknown Command" when i type "/killall"
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/killall", cmdtext, true, 10) == 0) { for(new i=0; i<MAX_PLAYERS; i++) { SetPlayerHealth(i,0); } } return 0; }
|
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/killall", cmdtext, true, 10) == 0)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
return SetPlayerHealth(i,0);
}
}
return 0;
}
Return the value
Re: [HELP] /killall -
Kitten - 13.12.2010
EDIT: Dammit-.- he was faster than me
Re: [HELP] /killall - Larsey123IsMe - 13.12.2010
LoL, thanks