18.01.2013, 09:11
(
Последний раз редактировалось WellDone; 18.01.2013 в 15:53.
)
pawn Код:
if(Tut[playerid]==1)
{
new Float:xPos, Float:yPos, Float:zPos, Float:Angle;
GetPlayerPos(playerid,xPos,yPos,zPos);
GetPlayerFacingAngle(playerid,Angle);
new Float:TutX[MAX_PLAYERS],Float:TutY[MAX_PLAYERS],Float:TutZ[MAX_PLAYERS],Float:TutA[MAX_PLAYERS];
TutX[playerid]=xPos;
TutY[playerid]=YPos;
TutZ[playerid]=zPos;
TutA[playerid]=Angle;
if(TutTime[playerid]==0)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,55.55,55.55,55.55);
SetPlayerCameraPos(playerid,66.66,66.66,66);
SetPlayerCameraLookAt(playerid,-99.9877,-5678.1234,2.0367);
ShowPlayerDialog(playerid,59,DIALOG_STYLE_MSGBOX,"Tutorial","My message","OK","");
}
if(TutTime[playerid]==15)
{
SetPlayerPos(playerid,66.66,66.66,66.66);
SetPlayerCameraPos(playerid,77.77,77.77,77);
SetPlayerCameraLookAt(playerid,-99.9877,-5678.1234,2.0367);
ShowPlayerDialog(playerid,61,DIALOG_STYLE_MSGBOX,"Tutorial","My message","OK","");
}
if(TutTime[playerid]==25)
{
SetPlayerPos(playerid,77.77,77.77,77.77);
SetPlayerCameraPos(playerid,88.88,88.88,88);
SetPlayerCameraLookAt(playerid,-99.9877,-5678.1234,2.0367);
ShowPlayerDialog(playerid,62,DIALOG_STYLE_MSGBOX,"Tutorial","My message","OK","");
}
if(TutTime[playerid]==60)
{
Tut[playerid]=0;
SetPlayerPos(playerid,TutX[playerid],TutY[playerid],TutZ[playerid]); //2783
SetPlayerFacingAngle(playerid,TutA[playerid]); //2784
}
telPos[0][playerid]=TutX[playerid];telPos[1][playerid]=TutY[playerid]; // 2789 sorry forgot to mention, this is anti cheat teleport, in this line telPos[0] must be equal to X coordiante, telPos[1] = Y coordinate.
}
Compiled but still doesn't work, player teleports to his current location (tutorial area) and doesn't get teleported back.
P.S. sorry, I'll leave for a few hours, hope for your help, thanks in advance.