help piickup
#1

Hi comunity

because the pickup will not believe me , if I have the function and that , you will see a minigame 'm doing and I have an error with the pickup just mentioned this is the function so that if you have the pickup is believed again

this is the function that is believed to die if you have the pickup

PHP код:
    if(TeamRojoBandera[playerid]==&& TieneBanderaAzul[playerid]==1)//Bandera Azul
    
{
        
TocarBanderaAzul=0;
        
TieneBanderaAzul[playerid]=0;
        
RemovePlayerAttachedObject(playerid,0);
        
DisablePlayerCheckpoint(playerid);
        
gPlayerCheckpoint[playerid] = CHECKPOINT_NONE;
        
BanderaAzulPickup CreateDynamicPickup(193071, -1434.6581,1486.1411,1.86725);
        foreach(
Playeri)
        {
        if(
TeamRojoBandera[i]==1)
        {
        
format(string2sizeof(string2),"* %s (ID:%d) asesino a %s (ID:%d) y recupero la bandera de tu equipo",PlayerName2(killerid),playerid,PlayerName2(playerid),playerid);
        
SendClientMessage(i,amarillo,string2);
        new 
string[200];
        
format(stringsizeof(string), "~n~~n~~n~~n~~n~~r~%s ~n~Recupero la bandera de tu equipo",PlayerName2(killerid));
           
GameTextForPlayer(istring30003);
        }
        }
    } 
this is the function for when you play

PHP код:
    if(pickupid == BanderaAzulPickup )
    {
        if(
EnBandera[playerid]==&& TeamRojoBandera[playerid]==1)
        {
              
//gServer[S_MONEYBAG_PLAYER] = playerid;
            
TocarBanderaAzul=1;
            
TieneBanderaAzul[playerid]=1;
            
//RemovePlayerAttachedObject(playerid, 1);
               
SetPlayerAttachedObjectplayerid0193076, -0.1000000.0000000.1000000.00000080.0000000.0000001.0000001.0000001.500000 );
              
DestroyPickup(BanderaAzulPickup);
              
SetPlayerCheckpoint(playerid,-1462.5980,1491.7832,8.2578,2.0);
            
gPlayerCheckpoint[playerid] = CHECKPOINT_RED;
            
SetPlayerColor(playerid,amarillo);
            foreach(
Playeri)
            {
            if(
TeamRojoBandera[i]==1)
            {
            new 
string[200];
            
format(stringsizeof(string), "~n~~n~~n~~n~~n~~b~%s ~n~Capturo la bandera enemiga ayudalo"PlayerName2(playerid));
               
GameTextForPlayer(istring30003);
            }
            }
        }
        else
        {
        
DestroyPickup(BanderaAzulPickup);
        
BanderaAzulPickup CreatePickup(193071, -1462.5980,1491.7832,8.25785);
        }
    } 
Reply
#2

Help..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)