[AJUDA] /EQUIPAR HITMANS
#1

Eu gostaria de saber como eu coloco o comando /equipar para os Hitmans...., eu ja coloquei uma pickup na HQ deles...
Dentro do
Quote:

if(strcmp(cmd, "/equipar", true) == 0)

eu copiei o codigo
Quote:

}
if(PlayerInfo[playerid][pLider] == 11)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
return 1;
}
if(PlayerInfo[playerid][pLider] == 26)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
return 1;
}

E modifiquei pras configs dos Hitmans... mas nao funcionou. Quando digito /equipar na pickup, ele diz "Vocк nгo possui esse comando"

Um Help ae ^^
Reply
#2

Bom, pelo que eu vejo, isso ai estб dando a arma sу б quem й lider dos hitmans...
Reply
#3

pawn Код:
if(PlayerInfo[playerid][pLider] == 11 || PlayerInfo[playerid][pMembro] == 11)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
return 1;
}
if(PlayerInfo[playerid][pLider] == 26 || PlayerInfo[playerid][pMembro] == 26)
{
format(string, sizeof(string), "* Policial Federal %s pega seus equipamentos de lнder.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 3, 0);
GivePlayerWeapon(playerid, 31, 600);
GivePlayerWeapon(playerid, 29, 600);
GivePlayerWeapon(playerid, 41, 600);
GivePlayerWeapon(playerid, 17, 10);
GivePlayerWeapon(playerid, 34, 100);
GivePlayerWeapon(playerid, 42, 4999);
return 1;
}
Poderб ser Isso, qual id dos hitmans ?
Reply
#4

Mesmo eu sendo lider nao ta funfando ;/
Reply
#5

Ta aqui a dos Hitmans...
Quote:

}
if(PlayerInfo[playerid][pMembro] == 8)//Hitmans
{
if(PlayerInfo[playerid][pCargo] == 1)
{
format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 80);
GivePlayerWeapon(playerid, 15, 80);
GivePlayerWeapon(playerid, 1, 0);
GivePlayerWeapon(playerid, 25, 300);
GivePlayerWeapon(playerid, 34, 300);
return 1;
}
if(PlayerInfo[playerid][pCargo] == 2)
{
format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 80);
GivePlayerWeapon(playerid, 15, 80);
GivePlayerWeapon(playerid, 1, 0);
GivePlayerWeapon(playerid, 25, 300);
GivePlayerWeapon(playerid, 34, 300);
return 1;
}
if(PlayerInfo[playerid][pCargo] == 3)
{
format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 80);
GivePlayerWeapon(playerid, 15, 80);
GivePlayerWeapon(playerid, 1, 0);
GivePlayerWeapon(playerid, 25, 300);
GivePlayerWeapon(playerid, 34, 300);
return 1;
}
if(PlayerInfo[playerid][pCargo] == 4)
{
format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 80);
GivePlayerWeapon(playerid, 15, 80);
GivePlayerWeapon(playerid, 1, 0);
GivePlayerWeapon(playerid, 25, 300);
GivePlayerWeapon(playerid, 34, 300);
return 1;
}
if(PlayerInfo[playerid][pCargo] == 5)
{
format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
GivePlayerWeapon(playerid, 23, 80);
GivePlayerWeapon(playerid, 15, 80);
GivePlayerWeapon(playerid, 1, 0);
GivePlayerWeapon(playerid, 25, 300);
GivePlayerWeapon(playerid, 34, 300);
return 1;
}
}

Reply
#6

ta dificil a ajuda? '-'
Reply
#7

se vc ja tem o codigo pra ke ker ajuda ? --'
Reply
#8

Usa IsPlayerInRangeOfPoint para checar se o player estб perto da pickup, depois й sу colocar lб:

pawn Код:
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
    if(PlayerInfo[playerid][pCargo] == 1)
    {
        format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        GivePlayerWeapon(playerid, 23, 80);
        GivePlayerWeapon(playerid, 15, 80);
        GivePlayerWeapon(playerid, 1, 0);
        GivePlayerWeapon(playerid, 25, 300);
        GivePlayerWeapon(playerid, 34, 300);
        return 1;
    }
    if(PlayerInfo[playerid][pCargo] == 2)
    {
        format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        GivePlayerWeapon(playerid, 23, 80);
        GivePlayerWeapon(playerid, 15, 80);
        GivePlayerWeapon(playerid, 1, 0);
        GivePlayerWeapon(playerid, 25, 300);
        GivePlayerWeapon(playerid, 34, 300);
        return 1;
    }
    if(PlayerInfo[playerid][pCargo] == 3)
    {
        format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        GivePlayerWeapon(playerid, 23, 80);
        GivePlayerWeapon(playerid, 15, 80);
        GivePlayerWeapon(playerid, 1, 0);
        GivePlayerWeapon(playerid, 25, 300);
        GivePlayerWeapon(playerid, 34, 300);
        return 1;
    }
    if(PlayerInfo[playerid][pCargo] == 4)
    {
        format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        GivePlayerWeapon(playerid, 23, 80);
        GivePlayerWeapon(playerid, 15, 80);
        GivePlayerWeapon(playerid, 1, 0);
        GivePlayerWeapon(playerid, 25, 300);
        GivePlayerWeapon(playerid, 34, 300);
        return 1;
    }
    if(PlayerInfo[playerid][pCargo] == 5)
    {
        format(string, sizeof(string), "* Hitman %s pega seus equipamentos.", sendername);
        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
        GivePlayerWeapon(playerid, 23, 80);
        GivePlayerWeapon(playerid, 15, 80);
        GivePlayerWeapon(playerid, 1, 0);
        GivePlayerWeapon(playerid, 25, 300);
        GivePlayerWeapon(playerid, 34, 300);
        return 1;
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)