[Ajuda] /equiparfbi e /desiquiparfbi
#1

boas eu editei este comando a minha maneira e agora ao fazer /equiparfbi dis Voce colocou o equipamento fbi
e aparece armas e a skin agora ao fazer /desiquiparfbi nao diz "voce desiquipou o equipamneto fbi"
e nao tira as armas nem mete a skin que ele tinha antes de fazer /equiparfbi :S alguem ajuda ? vejam o comando

PHP код:
if(!strcmp(cmdtext,"/equiparfbi",true))
    {
        if(
IsACop(playerid))
        if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 2)
        {
        if (
PlayerToPoint(3playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
        if(
Equipamentos[playerid] == 1)
        {
            
RemovePlayerAttachedObject(playerid,3);
                    
Equipamentos[playerid] = 0;
                    return 
1;
        }
        if(
Equipamentos[playerid] == 0)
        {
            
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
            
SendClientMessage(playeridCOLOR_GREEN"Vocк colocou o seu equipamento");
            new 
nomefbi[MAX_PLAYER_NAME];//Tava faltando iso aki << prap ega o nome do lokin
            
GetPlayerName(playeridnomefbisizeof(nomefbi));//<<
            
format(stringsizeof(string), "Argente FBI %s colocou o equipamento. "nomefbi);
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
SetPlayerSkin(playerid285)
            
SafeGivePlayerWeapon(playerid241000);
            
SafeGivePlayerWeapon(playerid311000);
            
SafeGivePlayerWeapon(playerid351000);
            
SafeGivePlayerWeapon(playerid401000);
            
SafeGivePlayerWeapon(playerid391000);
            
SetPlayerHealth(playerid100);
            
SetPlayerArmour(playerid100);
            
TogglePlayerControllable(playerid1);
            
SetPlayerColor(playerid,0x008EFFFF);
            
printf("%s"string);
            
Equipamentos[playerid] = 1;
            return 
1;
        }
        }
        else
        {
            
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um ARGENTE FBI.");
        }
        return 
1;
    }
    
    if(!
strcmp(cmdtext,"/desiquiparfbi",true))
    {
        if(
IsACop(playerid))
        if(
PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == || PlayerInfo[playerid][pMember] == || PlayerInfo[playerid][pLeader] == 2)
        {
        if (
PlayerToPoint(3playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255)
        if(
Equipamentos[playerid] == 1)
        {
            
RemovePlayerAttachedObject(playerid,3);
                    
Equipamentos[playerid] = 0;
                    return 
1;
        }
        if(
Equipamentos[playerid] == 1)
        {
            
RemovePlayerAttachedObject(playerid,3);
            
SendClientMessage(playeridCOLOR_GREEN"Vocк guardou o seu equipamento.");
            new 
nomefbi[MAX_PLAYER_NAME];//Tava faltando iso aki << prap ega o nome do lokin
            
GetPlayerName(playeridnomefbisizeof(nomefbi));//<<
            
format(stringsizeof(string), "Argente FBI %s guardou o equipamento. "nomefbi);
            
ProxDetector(30.0playeridstringCOLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            
SafeResetPlayerWeapons(playerid);
            
SetPlayerSkin(playeridPlayerInfo[playerid][pChar]);
            
SetPlayerHealth(playerid100);
            
SetPlayerArmour(playerid0);
            
SetPlayerColor(playerid,0xFFFFFFAA);
            
TogglePlayerControllable(playerid1);
            
printf("%s"string);
            
Equipamentos[playerid] = 0;
            return 
1;
        }
        }
        else
        {
            
SendClientMessage(playerid,COLOR_RED,"Vocк nгo й um ARGENTE FBI.");
        }
        return 
0;
    } 
Reply


Messages In This Thread
[Ajuda] /equiparfbi e /desiquiparfbi - by [Dk]TuReTOo - 22.05.2011, 14:13
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by JonathanFeitosa - 22.05.2011, 14:59
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by [Dk]TuReTOo - 22.05.2011, 15:05
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by Carl_Thuse - 22.05.2011, 15:33
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by [Dk]TuReTOo - 22.05.2011, 15:56
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by [Dk]TuReTOo - 22.05.2011, 17:46
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by JonathanFeitosa - 22.05.2011, 20:01
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by [Dk]TuReTOo - 22.05.2011, 20:27
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by rjjj - 22.05.2011, 22:04
Re: [Ajuda] /equiparfbi e /desiquiparfbi - by steki. - 26.05.2011, 19:52

Forum Jump:


Users browsing this thread: 2 Guest(s)