[Ajuda] Bug SetPlayerTeam
#1

Estou usando SetPlayerTeam para evitar que matem da mesma gang
Mas o id 0, nгo pode ser danificado,mas ele pode danificar os jogadores de sua gang

Topo
PHP код:
 #define GANG_GATES      0 
Skin
PHP код:
AddPlayerClassEx(GANG_GATES,285,-1615.0461,681.2841,7.1875,176.7815,0,0,0,0,0,0); //Gate 
OnPlayerRequestClass(playerid, classid)
PHP код:
     switch(classid)
    {
        case 
0:
        {
            
GameTextForPlayer(playerid,"~n~~n~~y~]~r~Gang dos Gates~y~]",2000,3);
            
gangteam[playerid] = 0;
            
format(pgang[playerid],15,pgangnames[0]);
               
SetPlayerColor(playerid,0xFF9900AA);
               
SetPlayerTeam(playerid,  GANG_GATES);
        } 
OnPlayerSpawn(playerid)
PHP код:
    if(gangteam[playerid] == 0)
    {
    
ResetPlayerWeapons(playerid);
    
GivePlayerWeapon(playerid24150);
    
GivePlayerWeapon(playerid2750);
    
GivePlayerWeapon(playerid2950);
    
GivePlayerWeapon(playerid31100);
    
GivePlayerWeapon(playerid3450);
    
GivePlayerWeapon(playerid41100);
    
SetPlayerTeam(playerid,GANG_GATES); 
Reply


Messages In This Thread
Bug SetPlayerTeam - by Cleitonboy23 - 15.06.2013, 20:19
Re: Bug SetPlayerTeam - by Prefacio - 15.06.2013, 20:28
Re: Bug SetPlayerTeam - by Cleitonboy23 - 15.06.2013, 21:14
Re: Bug SetPlayerTeam - by BielCOP - 15.06.2013, 22:06
Re: Bug SetPlayerTeam - by Cleitonboy23 - 15.06.2013, 22:10
Re: Bug SetPlayerTeam - by BielCOP - 15.06.2013, 22:13
Re: Bug SetPlayerTeam - by Cleitonboy23 - 15.06.2013, 22:33
Re: Bug SetPlayerTeam - by BielCOP - 15.06.2013, 22:38
Re: Bug SetPlayerTeam - by Cleitonboy23 - 15.06.2013, 23:11
Re: Bug SetPlayerTeam - by BielCOP - 15.06.2013, 23:24

Forum Jump:


Users browsing this thread: 1 Guest(s)