29.01.2010, 17:49
pawn Код:
if(strcmp(cmdtext, "/ha", true) == 0)
{
if(GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playerid, -10000);
SetPlayerHealth(playerid, 100.0);
SetPlayerArmour(playerid, 100.0);
return SendClientMessage(playerid, 0xFFFFFFFF, "Thank you for using the /ha command.Now your armour and your health will be set to 100 (FULL).The cost is 10.000$");
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "You need $10000 to use this command.");
}