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.