[HELP] else problem
#3

pawn Код:
new cartype = GetPlayerVehicleID(playerid);
        new State=GetPlayerState(playerid);
        if(GetPVarInt(playerid, "Admin") >= 1)
        {
            if(State!=PLAYER_STATE_DRIVER)
            {
                TogglePlayerControllable(playerid,0); // Freeze the player
                SetTimerEx("Freeze", 2000, false, "i", playerid); // Timer for 4 seconds (not repeating timer, only called on the command)
                SetPlayerPos(playerid,-200.9151,61.5312,5.2272);
                GameTextForPlayer(playerid,"~r~Admin base!",2500,1);
                return 1;
            }
            else if(IsPlayerInVehicle(playerid, cartype) == 1)
            {
                TogglePlayerControllable(playerid,0); // Freeze the player
                SetTimerEx("Freeze", 2000, false, "i", playerid); // Timer for 4 seconds (not repeating timer, only called on the command)
                SetVehiclePos(cartype,-200.9151,61.5312,5.2272);
                SetVehicleZAngle(cartype,91);
                GameTextForPlayer(playerid,"~r~Admin Base!",2500,1);
                return 1;
            }
            else
            {
                TogglePlayerControllable(playerid,0); // Freeze the player
                SetTimerEx("Freeze", 2000, false, "i", playerid); // Timer for 4 seconds (not repeating timer, only called on the command)
                SetPlayerPos(playerid,-200.9151,61.5312,5.2272);
            }
            GameTextForPlayer(playerid,"~r~Admin Base!",2500,1);
        }
        else
        {
            SendClientMessage(playerid,red,"You can't use this command!");
        }
Reply


Messages In This Thread
[HELP] else problem - by V4at - 24.02.2014, 18:51
Respuesta: [HELP] else problem - by CuervO - 24.02.2014, 18:57
Re: [HELP] else problem - by DexterC - 24.02.2014, 18:57
Re: [HELP] else problem - by DaniceMcHarley - 24.02.2014, 19:02
Re: [HELP] else problem - by V4at - 24.02.2014, 19:10
Re: [HELP] else problem - by DexterC - 24.02.2014, 19:29
Re: [HELP] else problem - by V4at - 24.02.2014, 19:53

Forum Jump:


Users browsing this thread: 2 Guest(s)