SA-MP Forums Archive
Problem with spawn. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem with spawn. (/showthread.php?tid=347186)



Problem with spawn. - Corona - 31.05.2012

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;
}




Re: Problem with spawn. - Edward156 - 31.05.2012

I believe you're talking about yourself getting muted. Where is your admin script? Check the "mute" part of your admin script and see what's up.


Re: Problem with spawn. - Corona - 31.05.2012

Quote:
Originally Posted by Edward156
Посмотреть сообщение
I believe you're talking about yourself getting muted. Where is your admin script? Check the "mute" part of your admin script and see what's up.
Just when new players come and when they write "Male" or "Female" it says ur muted, lemme check.


Re: Problem with spawn. - dannyk0ed - 31.05.2012

This is ugly use [ pawn] [/ pawn] without spaces