Respawn vehicle command not working
#3

Quote:
Originally Posted by blackwave
Посмотреть сообщение
pawn Код:
if(strcmp("/rtv",cmdtext, true, 10) == 0)
    {
        if(PlayerInfo[playerid][pAdminLevel] > 1 && PlayerInfo[playerid][pIsGolden] == 1)
        {
            if (IsPlayerInAnyVehicle(playerid))
            {
                new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
                SetVehicleToRespawn(veh);
            }
            else
            {
              SendClientMessage(playerid,COLOR_RED,"AdmCmd: You must be in a vehicle to use this command.");
               
            }
            return 1;
        }
        else return SendClientMessage(playerid,COLOR_GRAY,"You don't have authorization.");
    }
There's no difference other than the order! Thank you, but it's not working. When im not in a vehicle it shows the error message, if im in one, nothing happens.
Should be this
pawn Код:
new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
                SetVehicleToRespawn(veh);
So anybody?
Reply


Messages In This Thread
Respawn vehicle command not working [Solved] - by admantis - 25.12.2010, 13:29
Re: Respawn vehicle command not working - by blackwave - 25.12.2010, 13:34
Respuesta: Re: Respawn vehicle command not working - by admantis - 25.12.2010, 13:44
Respuesta: Respawn vehicle command not working - by admantis - 25.12.2010, 13:57
Re: Respawn vehicle command not working - by Mean - 25.12.2010, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)