16.03.2014, 09:24
Quote:
can u give the coords of place where you want to create that sliding door
|
Code:
public OnPlayerPickUpDynamicPickup(playerid, pickupid) { if(pickupid == DoorPickup) //Making sure that the player is in the pickup for the door { if(pInfo[playerid][pSFPD; >= 1) //Checking if the player is in SAPD (Change for your script) { SetPlayerPos(playerid, 276.1867,122.1338,1004.6172,269.0974); //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; }