29.10.2012, 16:13
Hey guys,
Please help me with the following:
Sometimes I get tp'd to the right cords when I spawn, but most of the times I get tp'd to 0.00.
My pX, pY and pZ are not at 0.00 in my file though.
This is the onlplayerspawn:
And this is the logintimer:
Please help me!
Please help me with the following:
Sometimes I get tp'd to the right cords when I spawn, but most of the times I get tp'd to 0.00.
My pX, pY and pZ are not at 0.00 in my file though.
This is the onlplayerspawn:
Код:
SetTimerEx("LoginTimer",2000,false,"d",playerid); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); SetTimerEx("SaveData",10000,true,"d",playerid);
Код:
forward LoginTimer(playerid); public LoginTimer(playerid) { ResetPlayerMoney(playerid); TogglePlayerControllable(playerid, 1); SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]); SetPlayerPos(playerid, PlayerInfo[playerid][pX],PlayerInfo[playerid][pY],PlayerInfo[playerid][pZ]); GivePlayerMoney(playerid, PlayerInfo[playerid][pMoney]); return 1; }