[Help] Mask command (zcmd)
#1

PHP код:
CMD:mask(playeridparams[])
{
if(
Logged[playerid] == 0) return 0;
if(
Info[playerid][Mask] == 0) return SendClientMessage(playerid,COLOR_RED,"[ERROR]: "COL_WHITE"You don't have a mask.");
if(
MaskOn[playerid] == 0)
{
GameTextForPlayer(playerid"~p~YOU HAVE PLACED A MASK ON"50005);
for(new 
0MAX_PLAYERSi++)
{
ShowPlayerNameTagForPlayer(iplayerid0);
}
MaskOn[playerid] = 1;
}
else
{
GameTextForPlayer(playerid"~p~REMOVED YOUR MASK"50005);
MaskOn[playerid] = 0;
for(new 
0MAX_PLAYERSi++)
{
ShowPlayerNameTagForPlayer(iplayerid1);
}
}
return 
1;

That's the command I'm using for masks on my server, and it works fine but when someone is far away from me and then he sees me I'm unmasked for him, help please?
Reply


Messages In This Thread
[Help] Mask command - by xRandomGuy - 16.12.2011, 15:37
Re: [Help] Mask command - by xRandomGuy - 16.12.2011, 18:34
Re: [Help] Mask command (zcmd) - by xRandomGuy - 17.12.2011, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)