how to reserve a car for a faction?
#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


Messages In This Thread
how to reserve a car for a faction? - by Gooday - 22.11.2011, 11:19
Re: how to reserve a car for a faction? - by SmiT - 22.11.2011, 11:27
Re: how to reserve a car for a faction? - by Gooday - 22.11.2011, 11:29

Forum Jump:


Users browsing this thread: 1 Guest(s)