RemovePlayerFromVehicle function don't work?
#1

Hello sa-mp.com visiters! I started my own server and some players reported me about a bug in server. Then they don't work in job, they can drive this work cars and they don't get this message: SendClientMessage(playerid,0xFF0000FF,"This car only for police!");//Explained below.... And other players said that they can't do this. I think there is something wrong with function RemovePlayerFromVehicle(playerid); There is my code:

Код:
		if(JobVehicle[Job1][vehicleid])
		{
			if(Info[playerid][Job] == JOB1_JOB)
			{
				if(GetPlayerSkin(playerid) == JOB1_SKIN)
				{
					//There is some functions...
				}
				else
				{
					SendClientMessage(playerid,0xFF0000FF,"You have to wear police uniform!");
					RemovePlayerFromVehicle(playerid);
				}
			}
			else
			{
				SendClientMessage(playerid,0xFF0000FF,"This car only for police!");
				RemovePlayerFromVehicle(playerid);
			}
		}
This code under callback OnPlayerStateChange. Where can be problem?
Reply


Messages In This Thread
RemovePlayerFromVehicle function don't work? - by Vvolk - 25.08.2012, 15:29
Re: RemovePlayerFromVehicle function don't work? - by Vince - 25.08.2012, 15:32
Re: RemovePlayerFromVehicle function don't work? - by Vvolk - 25.08.2012, 15:35
Re: RemovePlayerFromVehicle function don't work? - by clarencecuzz - 25.08.2012, 16:01
Re: RemovePlayerFromVehicle function don't work? - by Vvolk - 25.08.2012, 16:06
AW: RemovePlayerFromVehicle function don't work? - by [Y]P90 - 25.08.2012, 16:12

Forum Jump:


Users browsing this thread: 1 Guest(s)