invite command
#6

Quote:
Originally Posted by kbalor
Посмотреть сообщение
I got it working now...

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

    if(sscanf(params, "u",targetid)) return SendClientMessage(playerid, yellow, "Usage: /invite <Part of Nick/Player ID>");
    GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~VIP Room",2000,3);
	SetPlayerPos(playerid, -710.6376,1851.7188,8.7459);
	SetPlayerFacingAngle(playerid, 270);
	SetPlayerInterior(playerid, 0);
	SetPlayerVirtualWorld(playerid, 20);
	SetCameraBehindPlayer(playerid);
	DestroyVehicle(GetPlayerVehicleID(playerid));
    PlayerInvitedPlayer[playerid] = true;
    return 1;
}
Do I still need this then?

Код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(PlayerInvitedPlayer[playerid] == true)
    {
        SetPlayerPos(playerid, -710.6376,1851.7188,8.7459);//Inside VIP Position
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Yes, because if that player enters the checkpoint, it will send you to the location of your X,Y,Z
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: 2 Guest(s)