Quote:
Originally Posted by (*|Flake|*)
pawn Code:
new DoorPickup; //Defining the DoorPickup globaly DoorPickup = CreatePickup(1274, 2, 0.0, 0.0, 9.0); //Making the door pickup (Change this to your ENTRY point)
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == DoorPickup) //Making sure that the player is in the pickup for the door { if(pInfo[playerid][pSAPD] >= 1) //Checking if the player is in SAPD (Change for your script) { SetPlayerPos(playerid, x, y, z); //Set this to where it will TP the player on entry SendClientMessage(playerid, -1, "Hello Mr. Police man"); //The message the player will get if they can enter } } else SendClientMessage(playerid, -1, "You're not a cop"); //The messag ethe player will get if they're NOT a cop return 1; }
Not tested how ever you should get the idea of how it works and be able to edit it for your gamemode
|
where they are the first lines?