how to reserve a car for a faction?
#1

Hi all, how i can add a towtruck just for the player with the towtrucker skins?

ps: i'll make a checkpoint when u go in it:

Type /towjob for become a towtrucker and than give the towtrucker SKIN...please i cant find how
Reply
#2

pawn Код:
new
    towtruck
;

towtruck = AddStaticVehicle( ... ); /* gamemodeinit / filterscriptinit */


public OnPlayerStateChange( playerid, newstate, oldstate )
{
    if ( newstate == PLAYER_STATE_DRIVER )
    {
        if ( GetPlayerVehicleID( playerid ) == towtruck && GetPlayerSkin( playerid ) != 23 )
        { /* if player is in the towtruck and his skin is NOT equal to 23 */
            RemovePlayerFromVehicle( playerid );
            SendClientMessage( playerid, -1, #You dont have towtruck skin );
        }
    }
    return ( 1 );
}
I added skin ID 23 as an example.
Reply
#3

Thank! how i can make a checkpoint with infos?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)