trying to upgrade the armor command buit it doesnt work
#2

Код:
#include <a_samp>
#define COLOR_RED 0xFF0000FF
#define COLOR_GREEN 0x00FF00FF

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/armour", cmdtext, true, 10) == 0)
    {
        new Float: armour;
        GetPlayerArmour(playerid, armour);
        if(armour < 100)
        {
	        SetPlayerArmour(playerid, 100);
	        GivePlayerMoney(playerid, -200);
	        SendClientMessage(playerid,COLOR_RED, "You have bought a bulletproof vest");
	        return 1;
        }
	else return SendClientMessage(playerid, COLOR_RED, "You already have full armour");
    }
    return 0;
}
Reply


Messages In This Thread
trying to upgrade the armor command buit it doesnt work - by stefke150 - 02.04.2012, 13:20
Re: trying to upgrade the armor command buit it doesnt work - by Catalyst- - 02.04.2012, 13:31
Re: trying to upgrade the armor command buit it doesnt work - by stefke150 - 02.04.2012, 13:36
Re: trying to upgrade the armor command buit it doesnt work - by Shouty - 25.06.2012, 20:05

Forum Jump:


Users browsing this thread: 1 Guest(s)