Server Freezes When Someone Connects [+REP].
#4

here if on my GM:
pawn Код:
#define DIALOG_WEAPONS 14
public OnPlayerSpawn(playerid)
{
    switch(pClass[playerid])
    {
        case 0..3:
        {
            SetPlayerColor(playerid, 0x00FF0069);
            if(Invaded[Grove] == 0)
            {
            tCP[Grove] = gTeam[playerid];
            }
        }
        case 4..6:
        {
            SetPlayerColor(playerid, 0xFF00FF96);
            if(Invaded[Ballas] == 0)
            {
            tCP[Ballas] = gTeam[playerid];
            }
        }
        case 7..9:
        {
            SetPlayerColor(playerid, 0xFFFF0096);
            if(Invaded[Vagos] == 0)
            {
            tCP[Vagos] = gTeam[playerid];
            }
        }
        case 10..12:
        {
            SetPlayerColor(playerid, 0x0000FF96);
            if(Invaded[Police] == 0)
            {
            tCP[Police] = gTeam[playerid];
            }
        }
        case 13..16:
        {
            SetPlayerColor(playerid, 0x00FFFF96);
            if(Invaded[Aztecas] == 0)
            {
            tCP[Aztecas] = gTeam[playerid];
            }
        }
    }
    SendClientMessage(playerid,0xFF66FFAA,"Type /help /cmds /rules");
    StopAudioStreamForPlayer(playerid); // Stop the audio stream
    SetPlayerZoneColor(playerid);
    Freemod[playerid] = 0;
    gangwarmod[playerid] = 1;
    drylakemod[playerid] = 0;
    AntiHealthSpam[playerid] = 0;
    IsSongPlaying[playerid] = 0;
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)