21.12.2012, 00:34
pawn Код:
if(strcmp("/heal",cmdtext,true,10)==0) {
if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0xFFFFFF, "Vocк nгo tem dinheiro suficiente!");
SetPlayerHealth(playerid,85);
return 1;
}
if(strcmp("/heal",cmdtext,true,10)==0) {
if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0xFFFFFF, "Vocк nгo tem dinheiro suficiente!");
SetPlayerHealth(playerid,85);
return 1;
}
if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, 0xFFFFFF, "Vocк nгo tem dinheiro suficiente!");
if(strcmp("/heal",cmdtext,true,10)==0)
{
if(GetPlayerMoney(playerid) < 2000)
{
new Float:Vida;
GetPlayerHealth(playerid, Vida);
SetPlayerHealth(playerid, Vida+85.0);
GivePlayerMoney(playerid, -2000);
}
return 1;
}