игрок бесконечно умирает
#3

PHP код:
public OnPlayerSpawn(playerid)
{
    
plafk[playerid] = 0;
    
PickupTimer[playerid] = SetTimerEx("OnPlayerPickupExit"1000true"d"playerid); // çàïóñêàåì ïðè ñïàâíå
    
SetPlayerVirtualWorld(playerid,1);
    
STDPlayer[playerid] = 0;
    
TeleportTime[playerid] = 10;
    
PlayerPlaySound(playerid10690.00.00.0);
    
TextDrawShowForPlayer(playerid,Textdraw6);
    
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    
SetPlayerHealth(playeridPlayerInfo[playerid][pSHealth]+50.0);
    
SetPlayerSkillLevel(playeridWEAPONSKILL_PISTOL0);
    
SetPlayerColor(playerid,0xFFFFFF00);
    if (
gTeam[playerid] == 4//medic / criminal reset team
    
{
        
gTeam[playerid] = 3;
    }
    if(
gPlayerLogged[playerid] == 0)
    {
        
SendClientMessage(playeridCOLOR_WHITE"{FF0000}‹‹ {FFFFFF}Èçâèíèòå, íî ýòîò ñåðâåð òðåáóåò çàëîãèíèòñÿ ïåðåä òåì êàê âîéòè â èãðó.Âû êèêíóòû {FF0000}››");
        
KickPlayer[playerid] = 1;
     }
    if(
gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
        
MedicBill[playerid] = 0;
        new 
rand random(sizeof(CIV));
        
SendClientMessage(playeridCOLOR_WHITE"{f9b0b0}x {FFFFFF}Âû íå Ëèäåð!");
        
PlayerInfo[playerid][pTeam] = 3;
        
gTeam[playerid] = 3;
        
SetSpawnInfo(playeridgTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        
PlayerInfo[playerid][pModel] = CIV[rand];
        
SpawnPlayer(playerid);
    }
    if(
gTeam[playerid] == 5)
    {
        if(
PlayerInfo[playerid][pMember] < 1)
        {
            
MedicBill[playerid] = 0;
            new 
rand random(sizeof(CIV));
            
SendClientMessage(playeridCOLOR_WHITE"{f9b0b0}x {FFFFFF}Âû íå Ëèäåð!");
            
PlayerInfo[playerid][pTeam] = 3;
            
gTeam[playerid] = 3;
            
SetSpawnInfo(playeridgTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
            
PlayerInfo[playerid][pModel] = CIV[rand];
            
SpawnPlayer(playerid);
        }
    }
    if(
gTeam[playerid] == 10)
    {
        if(
PlayerInfo[playerid][pMember] != 8)
        {
            
MedicBill[playerid] = 0;
            new 
rand random(sizeof(CIV));
            
SendClientMessage(playeridCOLOR_WHITE"{f9b0b0}x {FFFFFF}Âû íå Ëèäåð!");
            
PlayerInfo[playerid][pTeam] = 3;
            
gTeam[playerid] = 3;
            
SetSpawnInfo(playeridgTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
            
PlayerInfo[playerid][pModel] = CIV[rand];
            
SpawnPlayer(playerid);
        }
    }
    if(
gTeam[playerid] == && PlayerInfo[playerid][pMember] > && PlayerInfo[playerid][pMember] == 20 && PlayerInfo[playerid][pMember] == 24 && PlayerInfo[playerid][pMember] == 22)
    {
        
MedicBill[playerid] = 0;
        new 
rand random(sizeof(CIV));
        
SendClientMessage(playeridCOLOR_WHITE"{f9b0b0}x {FFFFFF}Âû íå Police, FBI, Army.");
        
PlayerInfo[playerid][pTeam] = 3;
        
gTeam[playerid] = 3;
        
SetSpawnInfo(playeridgTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
        
PlayerInfo[playerid][pModel] = CIV[rand];
        
SpawnPlayer(playerid);
    }
    if(
gTeam[playerid] == 3)
    {
        if(
PlayerInfo[playerid][pMember] > || PlayerInfo[playerid][pLeader] > 0)
        {
            
MedicBill[playerid] = 0;
            new 
model PlayerInfo[playerid][pChar];
            if(
PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid2model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2gTeam[playerid] = 2PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid2model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2gTeam[playerid] = 2PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid2model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2gTeam[playerid] = 2PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid1model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1gTeam[playerid] = 1PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid5model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5gTeam[playerid] = 5PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid5model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5gTeam[playerid] = 5PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid7model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7gTeam[playerid] = 7PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid10model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10gTeam[playerid] = 10PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
               else if(
PlayerInfo[playerid][pMember] == 17) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid12model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12gTeam[playerid] = 12PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 17) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            else if(
PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid11model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11gTeam[playerid] = 11PlayerInfo[playerid][pModel] = model; }
            
SpawnPlayer(playerid);
        }
    }
    if(
PlayerInfo[playerid][pChar] > 0) {  }
    else { 
SetPlayerSkin(playeridPlayerInfo[playerid][pModel]); }
    
SetPlayerSkin(playeridPlayerInfo[playerid][pChar]);
    
SetPlayerWeapons(playerid);
    
SetPlayerSpawn(playerid);
    
PlayerFixRadio(playerid);
    
SetCameraBehindPlayer(playerid);
    return 
true;

Reply


Messages In This Thread
игрок бесконечно умирает - by D1mka5592 - 27.03.2013, 10:32
Re: игрок бесконечно умирает - by jhonyxakep - 27.03.2013, 10:56
Re: игрок бесконечно умирает - by D1mka5592 - 27.03.2013, 10:58
Re: игрок бесконечно умирает - by White_116 - 27.03.2013, 11:56
Re: игрок бесконечно умирает - by James_Braga - 28.03.2013, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)