Help a bit here
#1

Hey are there an guide how to script like when i have map taxi cars so just taxi driver can drive the taxi?
Reply
#2

well make the taxi cars into like new taxi1,taxi2; so under your gamemode it should bel ike this
pawn Код:
taxi1 = CreateVehicle...
taxi2 = CreateVehicle...
Under onplayerstatechange do this
pawn Код:
if(GetPlayerVehicleID(playerid) == taxi1)
    {
        if(PlayerData[playerid][TaxiDriver] == 0)
        {
            SendClientMessage(playerid,0xFF0000FF,"ERROR: You are not a taxi driver");
            RemovePlayerFromVehicle(playerid);
            }
    }
    if(GetPlayerVehicleID(playerid) == taxi2)
    {
        if(PlayerData[playerid][TaxiDriver] == 0)
        {
            SendClientMessage(playerid,0xFF0000FF,"ERROR: You are not a taxi driver");
            RemovePlayerFromVehicle(playerid);
            }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)