Help with Isacopcar
#4

i dont really understand what youre trying to tell me with copcar and infernus but i canb show you how to usw this infernus just for name:
at the top:
Код:
new infernus;
gamemodeinit
Код:
infernus = CreateVehicle(411, x, y, z, a, c1, c2, respawndelay);//replace those x, y ....
Код:
public OnPlayerEnterVehicle(playerid, vehicleid) //no other parameters? idk
{
	if(vehicle == infernus)
	{
		new playername[24];
		GetPlayerName(playerid, playername, 24);
		if(strcmp(playername, "Yournamehere", true) != 0)
		{
			new 
				Float:x, 
				Float:y, 
				Float:z,
				str[128];
			SetPlayerPos(playerid, x, y, z);
			format(str, 128, "~r~This is %s's car~n~You are not allowed to use it", "Yournamehere");
			GameTextForPlayer(playerid, str, 5000, 5);
			return 1;
		}
	}
	return 1;
}
should work but untested.
Reply


Messages In This Thread
Help with Isacopcar - by ihatetn931 - 13.01.2010, 21:00
Re: Help with Isacopcar - by Toad - 13.01.2010, 21:04
Re: Help with Isacopcar - by ihatetn931 - 13.01.2010, 22:01
Re: Help with Isacopcar - by Toad - 14.01.2010, 11:29
Re: Help with Isacopcar - by ihatetn931 - 14.01.2010, 23:03
Re: Help with Isacopcar - by Retardedwolf - 14.01.2010, 23:35
Re: Help with Isacopcar - by ihatetn931 - 15.01.2010, 17:26
Re: Help with Isacopcar - by Retardedwolf - 15.01.2010, 23:44
Re: Help with Isacopcar - by ihatetn931 - 16.01.2010, 00:39

Forum Jump:


Users browsing this thread: 1 Guest(s)