Help in CMD's
#4

pawn Код:
if (strcmp("/Buyhealth", cmdtext, true, 10) == 0)
{
    if(GetPlayerMoney(playerid) < 10000)
    {
        SendClientMessage(playerid, -1, "You can't afford this!");
        return 1;
    }
    SetPlayerHealth(playerid, 100.0);
    GivePlayerMoney(playerid, -10000);
    return 1;
}
if (strcmp("/BuyArmor", cmdtext, true, 10) == 0)
{
    if(GetPlayerMoney(playerid) < 10000)
    {
        SendClientMessage(playerid, -1, "You can't afford this!");
        return 1;
    }
    SetPlayerArmour(playerid, 100.0);
    GivePlayerMoney(playerid, -10000);
    return 1;
}
Reply


Messages In This Thread
Help in CMD's - by Mr.Black - 29.06.2011, 07:13
Re: Help in CMD's - by PrawkC - 29.06.2011, 07:22
Re: Help in CMD's - by Mr.Black - 29.06.2011, 07:29
Re: Help in CMD's - by HyperZ - 29.06.2011, 07:39
Re: Help in CMD's - by Mr.Black - 29.06.2011, 07:41
Re: Help in CMD's - by HyperZ - 29.06.2011, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)