31.05.2012, 22:03
I dont understand why it says "You cannot speak you have been silenced" look the script, all is good, i dont know what is problem...
Quote:
public SetPlayerSpawn(playerid) { if(IsPlayerConnected(playerid)) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); if(PlayerInfo[playerid][pTut] == 0) { gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1; SetPlayerInterior(playerid, 14); PlayerInfo[playerid][pInt] = 14; SetPlayerPos(playerid,1654.2089,-1657.9633,22.5156); //mambo spawn fix SetPlayerFacingAngle(playerid, 176.641; SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid, 0); RegistrationStep[playerid] = 0; SendClientMessage(playerid, COLOR_FTW, "Welcome To Outlawz Real Life."); PlayerInfo[playerid][pMuted] = 0; SendClientMessage(playerid, COLOR_BLUE1, "Question: What Gender Are You? (Press T & Type: Male or Female)."); return 1; } |
Quote:
if(RegistrationStep[playerid] > 0) { if(RegistrationStep[playerid] == 1) { new idx; tmp = strtok(text, idx); if((strcmp("male", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("male"))) { PlayerInfo[playerid][pSex] = 1; SendClientMessage(playerid, COLOR_WHITE, "Okey. You will spawn with a male skin."); new maleskin; maleskin = random(sizeof(CivMalePeds)); SetPlayerSkin(playerid, maleskin); SetPlayerSkin(playerid, maleskin); SetPlayerSkin(playerid, maleskin); PlayerInfo[playerid][pChar] = maleskin; RegistrationStep[playerid] = 0; TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1; gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0; TogglePlayerControllable(playerid, 1); MedicBill[playerid] = 0; AfterTutorial[playerid] = 1; SetTimerEx("UnsetAfterTutorial", 2500, false, "i", playerid); SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid); SetPlayerSpawn(playerid); ClearChatbox(playerid, 15); SendClientMessage(playerid, COLOR_FTW, "Welcome to Outlawz RealLife Server! Enjoy it."); SendClientMessage(playerid, COLOR_GRAD1, "Hint: To call a taxi use /call 444 "); SendClientMessage(playerid, COLOR_GRAD1, "Hint: To change your outfit go to a clothes shop"); //TutTime[playerid] = 1; return 0; } else if((strcmp("female", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("female"))) { PlayerInfo[playerid][pSex] = 2; SendClientMessage(playerid, COLOR_WHITE, "Okey. You will spawn with a female skin."); new femaleskin; femaleskin = random(sizeof(CivFemalePeds)); SetPlayerSkin(playerid, femaleskin); SetPlayerSkin(playerid, femaleskin); SetPlayerSkin(playerid, femaleskin); PlayerInfo[playerid][pChar] = femaleskin; RegistrationStep[playerid] = 0; TutTime[playerid] = 0; PlayerInfo[playerid][pTut] = 1; gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0; TogglePlayerControllable(playerid, 1); MedicBill[playerid] = 0; AfterTutorial[playerid] = 1; SetTimerEx("UnsetAfterTutorial", 2500, false, "i", playerid); SetTimerEx("UnsetFirstSpawn", 5000, false, "i", playerid); SetPlayerSpawn(playerid); ClearChatbox(playerid, 15); SendClientMessage(playerid, COLOR_FTW, "Welcome to Outlawz RealLife Server! Enjoy it."); SendClientMessage(playerid, COLOR_GRAD1, "Hint: To call a taxi use /call 444 "); SendClientMessage(playerid, COLOR_GRAD1, "Hint: To change your outfit go to a clothes shop"); //TutTime[playerid] = 1; return 0; } else { SendClientMessage(playerid, COLOR_BLUE1, "Wich spawn skin do you want? (Type in Male or Female)."); } return 0; } return 0; } |