need help with PPC_TRUCKING
#1

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.
Reply
#2

--------------
Reply
#3

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.
Reply
#4

and how could i add restricted vehicles??
Reply
#5

i still need the help please
Reply
#6

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");
};
};
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)