SA-MP Forums Archive
how to make police car and skin for admins only - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how to make police car and skin for admins only (/showthread.php?tid=103949)



how to make police car and skin for admins only - dcgm19 - 21.10.2009

i want to know if there is a code to only allows the Admins to have the cop skins and cop cars (i hope someone didn't ask this already)


Re: how to make police car and skin for admins only - Adamrcook - 22.10.2009

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(IsACopCar)
	{
		if(IsPlayerAdmin(playerid))
		{
	  		SendClientMessage(playerid, COLOR_WHITE, "You have entered a police cruiser");
	  	    return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_WHITE, "You are NOT an admin!");
	 		RemovePlayerFromVehicle(playerid);
		}
	}
	return 1;
}

You'll probably get some loose indention warnings from the copy and paste. That should deal with the cars, of course just define the needed stuff.


Re: how to make police car and skin for admins only - Peter_Corneile - 23.10.2009

Quote:
Originally Posted by ╔Jigsaw╗
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	if(IsACopCar)
	{
		if(IsPlayerAdmin(playerid))
		{
	 		SendClientMessage(playerid, COLOR_WHITE, "You have entered a police cruiser");
	  	    return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_WHITE, "You are NOT an admin!");
	 		RemovePlayerFromVehicle(playerid);
		}
	}
	return 1;
}

You'll probably get some loose indention warnings from the copy and paste. That should deal with the cars, of course just define the needed stuff.
Useless code , you need to forward IsACopCar first and make several defines


Re: how to make police car and skin for admins only - Adamrcook - 25.10.2009

That's what I said...

This isn't a script request thread, I assumed he knew how to do something. Read the whole post before bitching please.

Also, there's nothing else to define, so I don't know what the hell you're talking about.


Re: how to make police car and skin for admins only - Peter_Corneile - 25.10.2009

Quote:
Originally Posted by ╔Jigsaw╗
That's what I said...

This isn't a script request thread, I assumed he knew how to do something. Read the whole post before bitching please.

Also, there's nothing else to define, so I don't know what the hell you're talking about.
Do you think IsACopCar already defined in PAWNO ? You need to fucking define it , where is it defined ? Did you tell him how ? You simply copied the code from GF (LARP) and pasted here


Re: how to make police car and skin for admins only - dcgm19 - 25.10.2009

thank you all times a million


Re: how to make police car and skin for admins only - dcgm19 - 25.10.2009

Quote:
Originally Posted by ►Peter Corneile◄ [ideal-host.co.uk
]
Quote:
Originally Posted by ╔Jigsaw╗
That's what I said...

This isn't a script request thread, I assumed he knew how to do something. Read the whole post before bitching please.

Also, there's nothing else to define, so I don't know what the hell you're talking about.
Do you think IsACopCar already defined in PAWNO ? You need to fucking define it , where is it defined ? Did you tell him how ? You simply copied the code from GF (LARP) and pasted here


btw i have no idea how to code im am super noob lol



Re: how to make police car and skin for admins only - dcgm19 - 25.10.2009

mabye u should make my post more clear could someone make me a filterscript that allows only rcon admin to use police,fire,ambulance vehicles here are the vehicle ids i want for the admins only 497,416, 407,523, 427,490, 528,544,596,598,597,599, 432, 601, 430,563,520 i know its a big list but it would really be appreciated if someone could make a filterscript for me


Re: how to make police car and skin for admins only - Peter_Corneile - 26.10.2009

I have made a small FS for you but next time you must ask for an FS in Script Request Thread .. Download the FS from here for the time being