29.09.2010, 19:22
I script differently then most people, but this is what I came up with...
Wait... I think this entire code is a bunch of crap. This will not buy the mask, but only put it on when in the area you want...
pawn Код:
if(strcmp(cmdtext,"/Mask",true) == 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))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i,playerid,0)
DisableNameTagLOS();
GameTextForPlayer(playerid, "~W~You have put ~g~ on", 5000, 5);
}
}
else
{
return SendClientMessage(playerid, 0xFF6C6CFF, "You are not in the correct area!");
}
}
return 1;
}