(Help) SAPD door only to
#3

Quote:
Originally Posted by (*|Flake|*)
View Post
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?
Reply


Messages In This Thread
(Help) SAPD door only to - by NTVbeleza - 14.03.2014, 03:19
Re: (Help) SAPD door only to - by Flake. - 14.03.2014, 05:04
Re: (Help) SAPD door only to - by NTVbeleza - 15.03.2014, 00:23
Re: (Help) SAPD door only to - by NTVbeleza - 16.03.2014, 09:10
Re: (Help) SAPD door only to - by BroZeus - 16.03.2014, 09:14
Re: (Help) SAPD door only to - by NTVbeleza - 16.03.2014, 09:24
Re: (Help) SAPD door only to - by BroZeus - 16.03.2014, 09:34
Re: (Help) SAPD door only to - by NTVbeleza - 16.03.2014, 09:40
Re: (Help) SAPD door only to - by Lloyde - 16.03.2014, 10:00

Forum Jump:


Users browsing this thread: 4 Guest(s)