problem with /accept death
#4

bracket too much...
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.
Reply


Messages In This Thread
problem with /accept death - by AustinWeerdGuy - 19.03.2014, 10:00
Re: problem with /accept death - by Voxel - 19.03.2014, 10:15
Re: problem with /accept death - by AustinWeerdGuy - 19.03.2014, 17:23
Re: problem with /accept death - by Sascha - 19.03.2014, 18:15
Re: problem with /accept death - by Carac - 19.03.2014, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)