[Ajuda] comando /pegarkit e /droparkit bugado
#4

Quote:
Originally Posted by k2bi
View Post
Coloquei Playerid em IsPlayerInRangeOfObject, vк se funciona
PHP Code:
CMD:pegarkit(playerid)
{
    for(new 
0<MAX_PLAYERSi++)
    {
        if(
IsPlayerInRangeOfObject(playeridkit[i], 5.0))
        {
            new 
string2[200];
            
format(string2sizeof(string2), "%s pegou um Kit medico do chao."nome(playerid));
            
ProxDetector(10.0playeridstring2, -1, -1, -1, -1, -1);
            
DestroyObject(kit[playerid]);
            
SendClientMessage(playeridVermelho"Voce pegou um Kit medico dropado no chao!");
            
Pinfo[playerid][KitM] += 1;
            return 
1;
        }
        else
        {
            
SendClientMessage(playeridVermelho"Nenhum MedKit aqui!");
            return 
1;
        }
    }
    return 
1;

Funcionou... mas se alguem dropar o kit ele nao destroi! e se eu colocar : DestroyObject(kit[i]); ele nao vai funcionar se estiver algum outro dropado!
Reply


Messages In This Thread
comando /pegarkit e /droparkit bugado - by OsamaBin - 02.06.2020, 15:27
Re: comando /pegarkit e /droparkit bugado - by MasterWinX - 02.06.2020, 17:24
Re: comando /pegarkit e /droparkit bugado - by k2bi - 02.06.2020, 18:38
Re: comando /pegarkit e /droparkit bugado - by OsamaBin - 02.06.2020, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)