Help with this script
#1

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;
	       			}
Reply
#2

Try this instead.

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

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 ||
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)