Posts: 169
Threads: 33
Joined: Dec 2011
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.
Posts: 169
Threads: 33
Joined: Dec 2011
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.
Posts: 169
Threads: 33
Joined: Dec 2011
and how could i add restricted vehicles??
Posts: 169
Threads: 33
Joined: Dec 2011
i still need the help please
Posts: 432
Threads: 34
Joined: Apr 2013
Reputation:
0
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");
};
};