Help with this script - 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: Help with this script (
/showthread.php?tid=552470)
Help with this script -
cyberlord - 24.12.2014
please help my with this script this script is for police job if u enter to police cars and your jobId not equal 1 its wont let u go but i need to add exception like if u are server owner its let u go in
Код:
if( PlayerInfo[playerid][JobID] !=1 || PlayerInfo[playerid][Owner] != 1) // POLICININKAS
{
SendClientMessage( playerid, COLOR_RED,"* Jus ne policininkas.");
RemovePlayerFromVehicle( playerid );
return 1;
}
Re: Help with this script -
RayC - 24.12.2014
Try this instead.
Код:
if( PlayerInfo[playerid][JobID] != 1 && PlayerInfo[playerid][Owner] != 1) // POLICININKAS
{
SendClientMessage( playerid, COLOR_RED,"* Jus ne policininkas.");
RemovePlayerFromVehicle( playerid );
return 1;
}
Re: Help with this script -
Clad - 24.12.2014
pawn Код:
if( PlayerInfo[playerid][JobID] != 1 && PlayerInfo[playerid][Owner] != 1) // POLICININKAS
{
SendClientMessage( playerid, COLOR_RED,"* Jus ne policininkas.");
RemovePlayerFromVehicle( playerid );
return 1;
}
You need to put && not ||