[HELP]Hitman faction car problem
#8

If you want to find out what the server car id for it is,

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2) // driver
	{
		new id; new str[256];
		id = GetPlayerVehicleID(playerid);
		format(str, sizeof(str), "ID: %d", GetPlayerVehicleID(playerid));
		SCM(playerid, COLOR_RED, str);
Add the IDs to your script, under
Код:
if(newstate == 2)
Then use "RemovePlayerFromVehicle(playerid)

Should look like:

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	if(newstate == 2) // driver
	{
		new id; new str[256];
		id = GetPlayerVehicleID(playerid);
		format(str, sizeof(str), "ID: %d", GetPlayerVehicleID(playerid));
		SCM(playerid, COLOR_RED, str);
		if(id == //Vehicle ID Here)
    	{
		if(!IsAHitman(playerid))
			{
 			RemovePlayerFromVehicle(playerid);
    		SendClientMessage(playerid, COLOR_RED, "You Do Not Have The Keys For This Vehicle!");
    	}
    	}
        }
        return 1;
}
Sorry for poor indentations.
Reply


Messages In This Thread
[HELP]Hitman faction car problem - by Lilcuete - 05.11.2009, 21:20
Re: [HELP]Hitman faction car problem - by Lilcuete - 05.11.2009, 21:27
Re: [HELP]Hitman faction car problem - by Alice[WS] - 05.11.2009, 21:38
Re: [HELP]Hitman faction car problem - by Lilcuete - 05.11.2009, 21:46
Re: [HELP]Hitman faction car problem - by Alice[WS] - 05.11.2009, 21:50
Re: [HELP]Hitman faction car problem - by Lilcuete - 05.11.2009, 21:55
Re: [HELP]Hitman faction car problem - by Lilcuete - 05.11.2009, 22:42
Re: [HELP]Hitman faction car problem - by Blaze09 - 06.11.2009, 00:34
Re: [HELP]Hitman faction car problem - by retart441 - 06.11.2009, 01:06
Re: [HELP]Hitman faction car problem - by Lilcuete - 06.11.2009, 17:10

Forum Jump:


Users browsing this thread: 1 Guest(s)