09.03.2015, 16:12
This is the code, why does it do this?
Код:
SetPlayerSpawn(playerid) { if(PlayerInfo[playerid][pReg] == 0) { gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; TogglePlayerControllable(playerid,0); SetPlayerColor(playerid,COLOR_WHITE); SetPlayerPos(playerid, 766.50, -1684.32, -6.86); //SetPlayerCameraPos(playerid, 751.93, -1673.95, 16.01); //SetPlayerCameraLookAt(playerid, 699.55, -1628.93, 5.88); SetPlayerCameraPos(playerid, 1881.0586,-1832.7437,101.6864); SetPlayerCameraLookAt(playerid,1981.1537,-1962.5801,16.2211); RegistrationStep[playerid] = 1; SendClientMessageEx(playerid, COLOR_GREEN, "Please fill in some information to proceed."); SendClientMessageEx(playerid, COLOR_LIGHTGREEN, "Are you a Male or Female? (Type in what you are)."); SetPlayerVirtualWorld(playerid, 1984); SetSpawnInfo(playerid, 0, PlayerInfo[playerid][pModel], PlayerInfo[playerid][pSPos][0], PlayerInfo[playerid][pSPos][1], PlayerInfo[playerid][pSPos][2], PlayerInfo[playerid][pSPos][0], 0, 0, 0, 0, 0, 0); SpawnPlayer(playerid); return 1; } return 1; }