[HELP] Check Point -FAIL-
#6

try this code
pawn Код:
#define COLOR_GREEN 0x33AA33AA
//-------------------------------------------------------------------------------------------------------------
new ArmourCP;
//-------------------------------------------------------------------------------------------------------------
public OnPlayerSpawn(playerid)
{
    ArmourCP = SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
    return 1;
}
//-------------------------------------------------------------------------------------------------------------
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (IsPlayerInRangeOfPoint( playerid, 5, 1982.6150, -220.6680, -0.2432))
    {
        if (strcmp("/buyarmour", cmdtext, true, 10) == 0)
        {
            if(GetPlayerMoney(playerid) <= 5000)
            {
                SendClientMessage(playerid, COLOR_GREEN, "Armour Bought For 5000$");
                GivePlayerMoney(playerid, -5000);
                SetPlayerArmour(playerid, 100);
            }
            else
        {
        SendClientMessage(playerid, COLOR_GREEN, "You Dont Have 5000$");
        }
     }
   }
}
Reply


Messages In This Thread
[HELP] Check Point -FAIL- - by Larsey123IsMe - 03.12.2010, 19:29
Re: [HELP] Check Point -FAIL- - by dice7 - 03.12.2010, 19:32
Re: [HELP] Check Point -FAIL- - by Larsey123IsMe - 03.12.2010, 19:40
Re: [HELP] Check Point -FAIL- - by dice7 - 03.12.2010, 19:41
Re: [HELP] Check Point -FAIL- - by Larsey123IsMe - 03.12.2010, 19:45
Re: [HELP] Check Point -FAIL- - by Fresh-Gta - 03.12.2010, 20:42
Re: [HELP] Check Point -FAIL- - by Larsey123IsMe - 03.12.2010, 20:58

Forum Jump:


Users browsing this thread: 1 Guest(s)