[ajuda]pegar armas
#2

Nгo testei mais tenta assim
Tente assim

Topo do GameMode
PHP код:
new bool:Equipou[MAX_PLAYERS];
forward Equipar(); 
Troque seu cуdigo para esse
PHP код:
if(PlayerInfo[playerid][pMember] == && PlayerToPoint(8.0,playerid,308.1387,1120.6375,1083.8828))
        {
            if(
Equipou[playerid] == true)
          {
            
SendClientMessage(playeridCOR_VERDE"Vocк jб se equipou");
              return 
true;
            }
            
GetPlayerName(playerid,sendername,256);
            
ReduceTime[playerid] = 1;
            
format(string256"%s, recebeu as armas",sendername);
            
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
SafeGivePlayerWeapon(playerid2435);
            
SafeGivePlayerWeapon(playerid11);
            
SafeGivePlayerWeapon(playerid51);
            
SetTimer("Equpar"1000false); // Mude o 1000 para o tempo que vocк quer(1000 = 1 segundo)
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        } 
Final do GameMode
PHP код:
public Equipar()
{
    if(
Equipou[playerid] == false)

Reply


Messages In This Thread
[ajuda]pegar armas - by Felipe_Wesker - 10.03.2012, 14:29
Re: [ajuda]pegar armas - by Đeagle - 10.03.2012, 14:37
Re: [ajuda]pegar armas - by Felipe_Wesker - 10.03.2012, 14:39
Re: [ajuda]pegar armas - by paulor - 10.03.2012, 14:42
Re: [ajuda]pegar armas - by Felipe_Wesker - 10.03.2012, 14:47
Re: [ajuda]pegar armas - by paulor - 10.03.2012, 14:49
Re: [ajuda]pegar armas - by Đeagle - 10.03.2012, 14:50
Re: [ajuda]pegar armas - by Felipe_Wesker - 10.03.2012, 14:51
Re: [ajuda]pegar armas - by Lucas_Alemao - 10.03.2012, 14:53
Re: [ajuda]pegar armas - by Đeagle - 10.03.2012, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)