SA-MP Forums Archive
need help with PPC_TRUCKING - 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)
+--- Thread: need help with PPC_TRUCKING (/showthread.php?tid=459557)



need help with PPC_TRUCKING - kjek98 - 23.08.2013

need help with PPC_TRUCKING i want to add classes like SWAT and stuff the swat is the same as police but they can drive hydras hunters rhinos and stuff so how could i do that and make it so the police cant drive them vehicles.


- Baumann - 23.08.2013

--------------


Re: need help with PPC_TRUCKING - kjek98 - 23.08.2013

i got these errors
Код:
C:\Documents and Settings\Owner\Desktop\ppc trucking\gamemodes\PPC_Trucking.pwn(853) : error 017: undefined symbol "TXT_Swat"
C:\Documents and Settings\Owner\Desktop\ppc trucking\gamemodes\PPC_Trucking.pwn(855) : error 017: undefined symbol "ClassSwat"
C:\Documents and Settings\Owner\Desktop\ppc trucking\gamemodes\PPC_Trucking.pwn(861) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.



Re: need help with PPC_TRUCKING - kjek98 - 23.08.2013

and how could i add restricted vehicles??


Re: need help with PPC_TRUCKING - kjek98 - 24.08.2013

i still need the help please


Re: need help with PPC_TRUCKING - PrinceKumar - 24.08.2013

Use it under onplayerstatechange
if(GetPlayerVehicleID(playerid) == 520 || GetPlayerVehicleID(playerid) == hunter vehicle id || GetPlayerVehicleID(playerid) == rhino vehicle id)
{
if(//here team name of those who will not allow to get in these vehicles== 1)
{
new Float: x , Float: y , Float: z;
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid, x,y 1.0,z);
SendClientMessage(playerid, color, "your error message here");
};
};