SA-MP Forums Archive
[Ajuda] Equipar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Equipar (/showthread.php?tid=288349)



[Ajuda] Equipar - Felipe_capone - 07.10.2011

Quando eu dou spawn em alguem ou reloga etc.. aperta f na hq e equipa oq fasso pra tira isso ? pq o cara jah nasce com arma ai vai apertando f e pegando mais balas ;x kero tira isso alguem ajuda pls


Re: [Duvida] Equipar - WLSF - 07.10.2011

procura por KEY_SECONDARY_ATTACK, oque for do equipar vocк tira..


Re: [Duvida] Equipar - Felipe_capone - 07.10.2011

PHP код:
    else if (keys == KEY_SECONDARY_ATTACK)
    {
        
Conce[playerid] = 0;
        
DestroyVehicle(ShopCar[playerid]);
        
TogglePlayerControllable(playeridtrue);
        
CarShopping[playerid] = false;
        
carbrowse[playerid] = 0;
        
GameTextForPlayer(playerid" "10003);
        
SetPlayerPos(playeridOrgX[playerid], OrgY[playerid], OrgZ[playerid]);
         
SetPlayerFacingAngle(playeridOrgA[playerid]);
           
SetPlayerVirtualWorld(playerid0);
        
SetCameraBehindPlayer(playerid);
    } 
?


Re: [Duvida] Equipar - WLSF - 07.10.2011

Nгo, tem que ter GivePlayerWeapon jб que tб equipando....


Re: [Duvida] Equipar - Felipe_capone - 07.10.2011

PHP код:
 if(PlayerInfo[playerid][pMember] == && PlayerToPoint(8.0,playerid,308.1387,1120.6375,1083.8828))
        {
            
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);
            
Safe(playerid2435);
            
SafeGivePlayerWeapon(playerid11);
            
SafeGivePlayerWeapon(playerid51);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == && PlayerToPoint(8.0,playerid,2491.8005,-1701.2091,1018.3438))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 22 && PlayerToPoint(30.0,playerid,425.1764,2531.2666,16.6157))
        {
            
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(playerid30200);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 12 && PlayerToPoint(8.0,playerid,2343.3301,-1186.4164,1027.9766))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 11 && PlayerToPoint(20.0,playerid,2174.5898,-2250.9900,13.3031))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 15 && PlayerToPoint(8.0,playerid,2807.3235,-1165.5062,1025.5703))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 18 && PlayerToPoint(8.0,playerid,-223.2749,1400.6974,27.7656))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 10 && PlayerToPoint(8.0,playerid,1142.1709,-10.6546,1000.6719))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 11 && PlayerToPoint(20.0,playerid,2174.5898,-2250.9900,13.3031))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 19 && PlayerToPoint(8.0,playerid,413.9086,2537.3391,10.0077))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 20 && PlayerToPoint(8.0,playerid,2552.4690,-1294.6213,1060.9844))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 16 && PlayerToPoint(8.0,playerid,1269.2566,-782.9906,1084.0149))
        {
            
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(playerid2960);
            
SafeGivePlayerWeapon(playerid81);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 17 && PlayerToPoint(8.0,playerid,-2166.3108,645.9502,1052.3750))
        {
            
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(playerid2960);
            
SafeGivePlayerWeapon(playerid81);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == && PlayerToPoint(8.0,playerid,449.0826,-80.9784,999.5547))
        {
            
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(playerid41);
            
SafeGivePlayerWeapon(playerid24100);
            
SafeGivePlayerWeapon(playerid3460);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if(
PlayerInfo[playerid][pMember] == 13 && PlayerToPoint(8.0,playerid,503.2502,-74.7538,998.7651))
        {
            
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);
            
SetTimerEx("ReduceTimer"10000false"i"playerid);
        }
        else if (
PlayerToPoint(3.0playerid,1781.3569,-2101.8064,14.0566))
          {
            if(
PlayerToPoint(3.0playerid,1781.3569,-2101.8064,14.0566))
            {
                
SetPlayerPos(playerid,2237.5791,-1080.8337,1049.0234);
                
SetPlayerInterior(playerid,2);
                
PlayerInfo[playerid][pInt] = 2;
                
SetPlayerVirtualWorld(playerid1);
            }
            else
            {
                
SetPlayerVirtualWorld(playerid1);
            }
        } 
esse ai nй ?


Re: [Duvida] Equipar - WLSF - 07.10.2011

deve ser, tenta usar /* */ e testa....


Re: [Duvida] Equipar - Felipe_capone - 07.10.2011

й man esse mesmo deu serto vlw


Re: [Duvida] Equipar - WLSF - 07.10.2011

Disponha.