HELP PLEASE !
#1

Does anyone know how to make a Script for the TAXI cars if you are not a TAXI driver you can not drive the TAXI car.I need help with this please im beginer.
Reply
#2

pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
    if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER ) // if entering a vehicle as driver continue..
    {
        switch( GetPlayerSkin( playerid ) ) // Get the Skin
        {
            case 7, 142: // Skin 7 and 142 are Taxi Drivers || If skin is 7 or 142 he is taxi driver
            {
                SendClientMessage( playerid, -1, "Welcome Taxi Driver!" ); // He is
                return 1;
            }
            default: // else
            {
                SendClientMessage( playerid, -1, "You are Taxi Driver!" ); // He  is not
                RemovePlayerFromVehicle( playerid ); // Remove him from the vehicle
                return 1;
            }
        }
    }
    return 1;
}
Reply
#3

im using raven's roleplay 0.3d and this script doesn't work :/ do you know how to do it?
Reply
#4

Actually the code works. I tested and nothing is wrong.
Reply
#5

Quote:
Originally Posted by ZIKADIMOV
Посмотреть сообщение
im using raven's roleplay 0.3d and this script doesn't work :/ do you know how to do it?
You shouldn't start RP server when you don't know how to script. Also, Raven's Roleplay stinks heavily + you should try out yourself instead of starting begging here because you're "beginar"
Reply
#6

yes but anyone can learn with some help
Reply
#7

https://sampforum.blast.hk/showthread.php?tid=283306
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)