29.12.2010, 09:11
so ...
And, when I so for example, SetPlayerPosEx(playerid,-1586.1814,-2742.9502,48.5391); this is happening
It teleports me to plane (Normal)
It waits 20 seconds (Normal)
After 20 seconds it teleports me to 0.0, 0.0, 0.0 (The problem)
IT should teleport to given X, Y, and Z in SetPlayerPosEx(playerid,-1586.1814,-2742.9502,48.5391);
Any help ?
pawn Код:
public SetPlayerPosExTimer(playerid, Float:x, Float:y, Float:z)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, x, y, z);
GameTextForPlayer(playerid, "Traveling over", 3000, 3);
return 1;
}
stock SetPlayerPosEx(playerid, Float:x, Float:y, Float:z)
{
SetPlayerPos(playerid, x, y, z);
GetPlayerPos(playerid, x, y, z);
GameTextForPlayer(playerid, "Traveling", 3000, 3);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1.7313,27.1232,1199.5938);
SetTimerEx("SetPlayerPosExTimer", 20*1000, 0, "i", playerid);
return 1;
}
It teleports me to plane (Normal)
It waits 20 seconds (Normal)
After 20 seconds it teleports me to 0.0, 0.0, 0.0 (The problem)
IT should teleport to given X, Y, and Z in SetPlayerPosEx(playerid,-1586.1814,-2742.9502,48.5391);
Any help ?