SA-MP Forums Archive
[AJUDA] relogar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] relogar (/showthread.php?tid=334290)



[AJUDA] relogar - DreyPT - 14.04.2012

sempre que relogo, morro.


o que faзo ?


Re: [AJUDA] relogar - whiXґ - 14.04.2012

Como assim?, nгo entendi muito bem explique melhor se puder; se for quando o player spawn poste o "OnPlayerSpawn"


Re: [AJUDA] relogar - DreyPT - 14.04.2012

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(GetPlayerSkin(playerid) == 0)
    {
        if(PlayerInfo[playerid][pSkin]== 0)
        {
            if(PlayerInfo[playerid][pSex] == 1)
            {
                PlayerInfo[playerid][pSkin]= 60;
                SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
            }
            else
            {
                PlayerInfo[playerid][pSkin]= 56;
                SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
            }
        }
        else
        {
            SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
        }
    }
    if (!AlreadyGiveWeapons[playerid]) SetTimerEx("LoadWeaponsToFile",250,false,"i",playerid);
    SetTimer("TimerPos",1000,true);
    if(gPlayerLogged[playerid])
    {
        SetPlayerSpawn(playerid);
        SetPlayerColor(playerid,COLOR_CIVILIAN);
    }
    return 1;
}