Detecting if a player is in their owned vehicle REP+
#5

personaly I use this:

pawn Код:
if(ispr[GetPlayerVehicleID(playerid)] == 1)
    {
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        if(PlayerInfo[playerid][Pid] == CarInfo[CarID][Carid] || PlayerInfo[playerid][Vehkey] == CarInfo[CarID][Carid] || PlayerInfo[playerid][Vehkey2] == CarInfo[CarID][Carid] || PlayerInfo[playerid][Vehkey3] == CarInfo[CarID][Carid])
        {
            SendClientMessage(playerid, COLOR_ORANGE, "Welcome back to your vehicle!");
        }
        else
        {
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, 0x999999AA, "You don't have the key of this vehicle.");
        }
    }
different style of scripting
Reply


Messages In This Thread
Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:38
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:39
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:40
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:43
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:46
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:48
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 30.01.2012, 10:55
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 10:56
Re: Detecting if a player is in their owned vehicle REP+ - by Unte99 - 30.01.2012, 11:12
Re: Detecting if a player is in their owned vehicle REP+ - by DRIFT_HUNTER - 30.01.2012, 11:35
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 30.01.2012, 20:55
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 01.02.2012, 04:01
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 02.02.2012, 19:08
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 02.02.2012, 19:18
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 02.02.2012, 19:32
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 02.02.2012, 19:37
Re: Detecting if a player is in their owned vehicle REP+ - by Fj0rtizFredde - 02.02.2012, 19:38
Re: Detecting if a player is in their owned vehicle REP+ - by milanosie - 02.02.2012, 19:39
Re: Detecting if a player is in their owned vehicle REP+ - by Azzeto - 02.02.2012, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)