19.03.2014, 18:15
bracket too much...
try this:
shouldn't matter if you use a PVar or a normal variable, both should work.
try this:
pawn Код:
if(strcmp(params,"death",true) == 0) {
if(EMSOnline())
return SendClientMessageEx(playerid, COLOR_RED, "You cant accept death when EMS is available");
else
{
if(GetPVarInt(playerid, "Injured") == 1) {
SendClientMessageEx(playerid, COLOR_WHITE, "You gave up hope and fell unconscious, you were immediately sent to the hospital.");
KillEMSQueue(playerid);
ResetPlayerWeaponsEx(playerid);
SpawnPlayer(playerid);
format(string, sizeof(string), "(( %s Has just accepted death, if this was done to AVOID, F8 and make a Complaint ))", GetPlayerNameEx(playerid));
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
format(string, sizeof(string), "AdmWarning: %s has just Accepted Death",GetPlayerNameEx(playerid));
ABroadCast(COLOR_LIGHTRED, string, 1);
}
else { SendClientMessageEx(playerid, COLOR_GREY, " You are not injured, you can't do this right now !"); }
}
shouldn't matter if you use a PVar or a normal variable, both should work.