29.09.2010, 19:11
Ok so I was working on only allowing players to be able to buy mask only if they are in this certain point (on the script), seems like it doesn't work, they can use it all the time .
PHP код:
if(strcmp(cmdtext,"/Mask",true) == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++)
ShowPlayerNameTagForPlayer(i,playerid,0);
if(IsPlayerConnected(playerid))
if(Mask == 0)return SendClientMessage(playerid,0xFF6C6CFF,"You don't have a mask !");
if(IsPlayerInRangeOfPoint(playerid, 1, 1588.2670,-2324.5415,1461.6630))
DisableNameTagLOS();
GameTextForPlayer(playerid, "~W~You have put ~g~ on", 5000, 5);
return 1;
}