how i make /killall,/kickall,/banall ?? - 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: how i make /killall,/kickall,/banall ?? (
/showthread.php?tid=245749)
how i make /killall,/kickall,/banall ?? -
[ProX]BlueFire - 01.04.2011
the title say all...
Re: how i make /killall,/kickall,/banall ?? -
Vince - 01.04.2011
https://sampwiki.blast.hk/wiki/Keywords:Statements#for
Re: how i make /killall,/kickall,/banall ?? -
[ProX]BlueFire - 01.04.2011
can u give an example?
Re: how i make /killall,/kickall,/banall ?? -
aircombat - 01.04.2011
pawn Код:
for(new i=0; i < MAX_PLAYERS && i != playerid; i++)
{
SetPlayerHealth(i,0.0);
}
Re: how i make /killall,/kickall,/banall ?? -
antonio112 - 01.04.2011
For example:
pawn Код:
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;
}
Re: how i make /killall,/kickall,/banall ?? -
SchurmanCQC - 01.04.2011
Example:
pawn Код:
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;
}
pawn Код:
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;
}
pretty simple...
Re: how i make /killall,/kickall,/banall ?? -
[ProX]BlueFire - 01.04.2011
another question...(on include)
how i make a line with message and colour??
(for example:: Say(playerid,message,colour); )
give an example!!!
Re: how i make /killall,/kickall,/banall ?? -
SchurmanCQC - 01.04.2011
pawn Код:
SendClientMessage(playerid,0xFFFFFFFF,"Here's a message.");
You shouldent be making a /kickall /banall and shit if you dont even know sendclientmessage.
Re: how i make /killall,/kickall,/banall ?? -
[ProX]BlueFire - 01.04.2011
-.-"
i mean how to make it in include....
for example:
pawn Код:
native Say(message,colour);
stock Say(message,colour)
{
somthing...
return 1;
}
i want to know how to make those to!! :: playerid(he need to enter playerid or just the word), value(value of cash/ammo and all...) and weaponid .
Re: how i make /killall,/kickall,/banall ?? -
SchurmanCQC - 01.04.2011
Here.....