PDA

View Full Version : Help with this script


cyberlord
24/12/2014, 05:26 PM
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;
}

RayC
24/12/2014, 05:42 PM
Try this instead.

if( PlayerInfo[playerid][JobID] != 1 && PlayerInfo[playerid][Owner] != 1) // POLICININKAS
{
SendClientMessage( playerid, COLOR_RED,"* Jus ne policininkas.");
RemovePlayerFromVehicle( playerid );
return 1;
}

Clad
24/12/2014, 05:44 PM
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 ||