i did change it to true and false there both didnt work what else, can i find to make it work! any ideas mate.
also i have it made like this but when i press male it still dont show the spawn button
Код:
SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
//TUTORIAL
if(PlayerInfo[playerid][pTut] == 0)
{
HideArea(playerid);
ShowGUI(playerid);
gOoc[playerid] = 1; gNewbie[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; RegistrationStep[playerid] = 1; CanTalk[playerid] = 1;
SetPlayerPos(playerid, 1305.5662841797,-1543.8950195313,122.20141601563);
TogglePlayerControllable(playerid, 0);
SetPlayerCameraPos(playerid, 1460.0, -1324.0, 287.2);
SetPlayerCameraLookAt(playerid, 1374.5, -1291.1, 239.0);
ShowPlayerDialog(playerid, SEXMENU, DIALOG_STYLE_MSGBOX, "{00C0FF}Immigration Center - First Question","{FFFFFF}- What Is your Gender ?\n[Note : Fake Info Will get you {A80000}Perm-Banned{FFFFFF} from Immigrating to LS]", "Male", "Female");
return 1;
}
HideGUI(playerid);
if(PlayerInfo[playerid][pTut] == 1)
{
if(PlayerInfo[playerid][pSafeSpawn] == 1)
{//FINISHED TUTORIAL
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid, 0);
//SetSpawnInfo(playerid, -1, 59, 1733.1367,-1911.9568,13.5621, 1.0, -1, -1, -1, -1, -1, -1);
SetPlayerPos(playerid,1733.1367,-1911.9568,13.5621);
SetPlayerFacingAngle(playerid, 90);
SetCameraBehindPlayer(playerid);
PlayerInfo[playerid][pSafeSpawn] = 0;
StopAudioStreamForPlayer(playerid);
}
else
{//RELOGGING
HideArea(playerid);
SetPlayerArmour(playerid, PlayerInfo[playerid][pArmor]);
SetPlayerInterior(playerid, PlayerInfo[playerid][pInt]);
SetPlayerPos(playerid, PlayerInfo[playerid][pSPos_x], PlayerInfo[playerid][pSPos_y], PlayerInfo[playerid][pSPos_z]);
SetPlayerFacingAngle(playerid, PlayerInfo[playerid][pSPos_r]);
SetCameraBehindPlayer(playerid);
StopAudioStreamForPlayer(playerid);
TextDrawHideForPlayer(playerid, SpawnClickI);
TextDrawHideForPlayer(playerid, SpawnClickII);
new string[128];
// Welcome
format(string, sizeof(string), "SERVER: {FFFFFF}Welcome to Project Gaming Roleplay {FF6347}%s{FFFFFF}.", RPN(playerid));
SendClientMessage(playerid, COLOR_NICEGREEN, string);
}
CanTalk[playerid] = 1;
SetPlayerToTeamColor(playerid);
}
}