Very small issue with a script.
#2

I script differently then most people, but this is what I came up with...

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;
}
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...
Reply


Messages In This Thread
Very small issue with a script. - by Scriptissue - 29.09.2010, 19:11
Re: Very small issue with a script. - by Scenario - 29.09.2010, 19:22
Re: Very small issue with a script. - by Scriptissue - 29.09.2010, 19:38
Re: Very small issue with a script. - by Cameltoe - 29.09.2010, 19:44
Re: Very small issue with a script. - by Scriptissue - 29.09.2010, 19:49

Forum Jump:


Users browsing this thread: 1 Guest(s)