22.04.2014, 03:27
Hello, i have a command /loungeenter but everytime i type it, it tp'ing me to the default not in the position i want here's my current code hope you can fix this..
I mean if i type /loungeenter it doesn't tp'ing me to the position i want
pawn Код:
CMD:loungeenter(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 13.0, -4398.9072, 870.9648, 986.3803))
{
if(PlayerInfo[playerid][pDonator] >= 0)
{
SetPlayerPos(playerid, -2636.7969,1403.7454,907.6803);
TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
SendClientMessageEx(playerid, COLOR_YELLOW, "VIP: You have entered the the VIP Lounge!");
SetPlayerInterior(playerid,0);
PlayerInfo[playerid][pInt] = 0;
SetPlayerVirtualWorld(playerid, 0);
PlayerInfo[playerid][pVW] = 0;
}
}
return 1;
}