Police Spawn.
#6

Quote:
Originally Posted by ZaakWest
Посмотреть сообщение
Код:
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 not what he asked for...

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.
Reply


Messages In This Thread
archive - by Fredx - 09.08.2013, 10:42
Re: Police Spawn. - by Fredx - 10.08.2013, 23:08
Re : Police Spawn. - by ZaakWest - 11.08.2013, 00:24
Re: Police Spawn. - by Fredx - 11.08.2013, 11:51
Re: Police Spawn. - by Donvalley - 11.08.2013, 13:30
Re: Re : Police Spawn. - by Donvalley - 11.08.2013, 13:38
Re: Police Spawn. - by Mitchy - 11.08.2013, 17:40
Re: Police Spawn. - by RedJohn - 11.08.2013, 21:24
Re: Police Spawn. - by Fredx - 13.08.2013, 11:48

Forum Jump:


Users browsing this thread: 2 Guest(s)