Need help. - 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)
+--- Thread: Need help. (
/showthread.php?tid=331435)
Need help. -
JoeyDeBlob - 04.04.2012
I made /mask command that you can buy mask in a 24/7..
however I wish to make a command for admins that will show all the masked players..
can anyone help me with it?
Re: Need help. -
TzAkS. - 04.04.2012
pawn Код:
if(strcmp(cmd, "/command", true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
if(PlayerInfo[i][pMask] == 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "» [ID: %d] Player with Mask: %s", i,sendername);
SendClientMessage(i, COLOR, string);
}
}
Re: Need help. -
JoeyDeBlob - 04.04.2012
can you use ZCMD?
Re: Need help. -
TzAkS. - 04.04.2012
pawn Код:
CMD:command( playerid, params[])
{
if(PlayerInfo[i][pMask] == 1)
{
new i;
i = strval( params );
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "» [ID: %d] Player with Mask: %s", i,sendername);
SendClientMessage(i, COLOR, string);
}
}