Bugged - +REP for helping
#7

Код:
enum pInfo
{
	pKey[129],
	pLevel,
	pAdmin,
	pConnectTime,
	pReg,
	pSex,
	pAge,
	pCash,
	pTut,
	pJob,
	pModel,
	Float: pSPos[4]
};
new PlayerInfo[MAX_PLAYERS+1][pInfo];
Код:
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);pSPos
   		SpawnPlayer(playerid);
		return 1;
	}
	return 1;
}
Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerSpawn(playerid);
	return true;
}
Reply


Messages In This Thread
Bugged - +REP for helping - by MrCallum - 09.03.2015, 16:12
Re: Bugged - +REP for helping - by DaniceMcHarley - 09.03.2015, 16:14
Re: Bugged - +REP for helping - by biker122 - 09.03.2015, 16:15
Re: Bugged - +REP for helping - by MrCallum - 09.03.2015, 16:15
Re: Bugged - +REP for helping - by biker122 - 09.03.2015, 16:17
Re: Bugged - +REP for helping - by CalvinC - 09.03.2015, 16:17
Re: Bugged - +REP for helping - by MrCallum - 09.03.2015, 16:18
Re: Bugged - +REP for helping - by MrCallum - 09.03.2015, 16:33
Re: Bugged - +REP for helping - by biker122 - 09.03.2015, 16:38
Re: Bugged - +REP for helping - by ReshiramZekrom - 09.03.2015, 17:06

Forum Jump:


Users browsing this thread: 3 Guest(s)