invite command
#2

Quick example

pawn Код:
new
    bool:PlayerInvitedPlayer [ MAX_PLAYERS ]
;


CMD:invite(playerid, params[])
{
    new
        targetid
    ;

    if(sscanf(params, "u", targetid))
        return SendClientMessage(playerid, -1, "Syntax: /invite [Player Name/ID]")

    SetPlayerCheckpoint( targetid, PositionX, PositionY, PositionZ, CheckpointSize ) //VIP Entrance Position
    PlayerInvitedPlayer[playerid] = true;
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    if(PlayerInvitedPlayer[playerid] == true)
    {
        SetPlayerPos(playerid, PositionX, PositionY, PositionZ)//Inside VIP Position
        SetPlayerInterior(playerid, InteriorID)//VIP Interior ID
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Reply


Messages In This Thread
invite command - by kbalor - 19.10.2013, 13:24
Re: invite command - by Patrick - 19.10.2013, 13:43
Re: invite command - by kbalor - 19.10.2013, 14:00
Re: invite command - by Patrick - 19.10.2013, 14:08
Re: invite command - by kbalor - 19.10.2013, 14:13
Re: invite command - by Patrick - 19.10.2013, 14:18
Re: invite command - by Patrick - 19.10.2013, 14:41
Re: invite command - by kbalor - 19.10.2013, 14:54
Re: invite command - by Konstantinos - 19.10.2013, 14:58
Re: invite command - by Patrick - 19.10.2013, 14:59

Forum Jump:


Users browsing this thread: 3 Guest(s)