11.08.2013, 13:38
Quote:
Код:
if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT) { new PlayerVehicle = GetVehicleFileID(GetPlayerVehicleID(playerid)); new ftext[20]; if(Vehicles[PlayerVehicle][Faction] != 0 && Vehicles[PlayerVehicle][Faction] != PlayerInfo[playerid][pMember]) { if(Vehicles[PlayerVehicle][Faction] == 1) { ftext = "LSPD"; } else if(Vehicles[PlayerVehicle][Faction] == 2) { ftext = "FBI"; } else if(Vehicles[PlayerVehicle][Faction] == 3) { ftext = "RCSD"; } else if(Vehicles[PlayerVehicle][Faction] == 4) { ftext = "LSFMD"; } else if(Vehicles[PlayerVehicle][Faction] == 5) { ftext = "National Guards"; } else if(Vehicles[PlayerVehicle][Faction] == 6) { ftext = "Senate"; } else if(Vehicles[PlayerVehicle][Faction] == 7) { ftext = "Secret Service"; } else if(Vehicles[PlayerVehicle][Faction] == 8) { ftext = "Hitman Agency"; } else if(Vehicles[PlayerVehicle][Faction] == 9) { ftext = "News Agency"; } else if(Vehicles[PlayerVehicle][Faction] == 10) { ftext = "Taxi Cab Company"; } format( string, sizeof( string ), "This vehicle is only usable by {FF6347}%s{AFAFAF}.", ftext); SendClientMessage( playerid, COLOR_GREY, string); RemovePlayerFromVehicle(playerid); } } |
This is if the player gets in the vehicle it says that it is only usable by (Faction Name) and removes them from the vehicle. He wants to make the cmd only for LSPD Faction Members/Leaders. Plus this code it taken from United Roleplay's GM Release.... Please read what the person is asking next time, before you answer.