11.11.2011, 11:51
but how i make this but i have pawno is crashing
PHP код:
if(strcmp(cmd,"/heal",true)==0)
{
if(PlayerInfo[playerid][pDonateRank] >= 4)
{
if(GetTickCount() - GetPVarInt(playerid, "heal") < 120000) return SendClientMessage(playerid, 0xFF0000FF, "you must wait 2 minutes");
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid,COLOR_GREEN,"You've set your health and armour to 100");
SetPVarInt(playerid, "heal", GetTickCount());
}
}
return 1;
}