invite command
#3

Quote:
Originally Posted by pds2k12
Посмотреть сообщение
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;
}
Wow thanks alot for responding.. Anyway I got this warnings..

Код:
 error 017: undefined symbol "PositionX"
error 017: undefined symbol "PositionX"
error 017: undefined symbol "InteriorID"
this line
Код:
SetPlayerPos(playerid, PositionX, PositionY, PositionZ)
Код:
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;
}
this is the coordinates I want to put
Код:
-710.6376,1851.7188,8.7459
Actually its not inside a interior its just an customized outdoor room and the virtual world was 20.
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: 1 Guest(s)