Lock Vehicle With Variable?
#4

I made this:
Код:
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) // Player entered a vehicle as a driver
	    {
	        if(Locked[GetPlayerVehicleID(playerid)] == 1)
			{
			    new string[256];
			    new pname[256];
				GetPlayerName(Locked[VehicleID[playerid]], pname, sizeof(pname));
			    format(string,sizeof (string),"This vehicle is locked by %s[%d]!",pname,Locked[VehicleID[playerid]]);
				SendClientMessage(playerid,COLOR_RED,string);
				RemovePlayerFromVehicle(playerid);
			}
	        else
	        {
				VehicleID[playerid] = GetPlayerVehicleID(playerid);
			}
	    }
But when i enter the vehicle it says its locked by one of my bots. How can i detect the good player who locked the vehicle?
Reply


Messages In This Thread
Lock Vehicle With Variable?+Rep - by Admigo - 19.05.2012, 10:32
Re: Lock Vehicle With Variable? - by [HiC]TheKiller - 19.05.2012, 11:11
Re: Lock Vehicle With Variable?+Rep - by Admigo - 19.05.2012, 11:44
Re: Lock Vehicle With Variable?+Rep - by Admigo - 19.05.2012, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)