[Ajuda] /roubar
#1

Seguinte galera como faзo para checar, se o player digitar /roubar e estiver sozinho sem mais nenhum membro da sua gang aparece voce so pode roubar o banco em 3+, alguem me ajuda?
Reply
#2

Up Tbm Quero Saber
Reply
#3

pawn Код:
GangMembersInPoint(playerid, Float:VBRaio, Float:VBX, Float:VBY, Float:VBZ)
{
    new Cont;
    for(new i, j = GetMaxPlayers(); i != j; i++)
        if(IsPlayerConnected(i))
            if(IsPlayerInRangeOfPoint(i, VBRaio, VBX, VBY, VBZ))
                if(Gang[playerid] == Gang[i]) // Adapte
                    Count++;    

    return Count;// Nъmero de pessoas da mesma gang no mesmo local
}
pawn Код:
if(GangMembersInPoint(playerid, Raio, X, Y, Z) < 3)
    return SendClientMessage(playerid,-1,"Trкs membros da gang sгo necessбrios.");
Reply
#4

Antes das coordenadas X, Y,Z o que й o raio?
Reply
#5

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
pawn Код:
GangMembersInPoint(playerid, Float:VBRaio, Float:VBX, Float:VBY, Float:VBZ)
{
    new Cont;
    for(new i, j = GetMaxPlayers(); i != j; i++)
        if(IsPlayerConnected(i))
            if(IsPlayerInRangeOfPoint(i, VBRaio, VBX, VBY, VBZ))
                if(Gang[playerid] == Gang[i]) // Adapte
                    Count++;    

    return Count;// Nъmero de pessoas da mesma gang no mesmo local
}
pawn Код:
if(GangMembersInPoint(playerid, Raio, X, Y, Z) < 3)
    return SendClientMessage(playerid,-1,"Trкs membros da gang sгo necessбrios.");
Pequena correзгo

pawn Код:
GangMembersInPoint(playerid, Float:VBRaio, Float:VBX, Float:VBY, Float:VBZ)
{
    new Count; //Vocк declarou como 'Cont' e usou 'Count' abaixo :)
    for(new i, j = GetMaxPlayers(); i != j; i++)
        if(IsPlayerConnected(i))
            if(IsPlayerInRangeOfPoint(i, VBRaio, VBX, VBY, VBZ))
                if(Gang[playerid] == Gang[i]) // Adapte
                    Count++;    

    return Count;// Nъmero de pessoas da mesma gang no mesmo local
}
Reply
#6

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
Pequena correзгo

pawn Код:
GangMembersInPoint(playerid, Float:VBRaio, Float:VBX, Float:VBY, Float:VBZ)
{
    new Count; //Vocк declarou como 'Cont' e usou 'Count' abaixo :)
    for(new i, j = GetMaxPlayers(); i != j; i++)
        if(IsPlayerConnected(i))
            if(IsPlayerInRangeOfPoint(i, VBRaio, VBX, VBY, VBZ))
                if(Gang[playerid] == Gang[i]) // Adapte
                 Count++;    

    return Count;// Nъmero de pessoas da mesma gang no mesmo local
}
Pequena correзгo:
pawn Код:
GangMembersInPoint(playerid, Float:VBRaio, Float:VBX, Float:VBY, Float:VBZ)
{
    new Count; //Vocк declarou como 'Cont' e usou 'Count' abaixo :)
    for(new i, j = GetMaxPlayers(); i != j; i++) if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i, VBRaio, VBX, VBY, VBZ) && Gang[playerid] == Gang[i])
           Count++;    

    return Count;// Nъmero de pessoas da mesma gang no mesmo local
}
Mais rбpido
Reply
#7

tipo isso da Gangmembersinpoint coloco onde?
Reply
#8

No inнcio do comando
Reply
#9

Vini da me erro
pawn Код:
if(GangMembersInPoint(playerid, Raio, X, Y, Z) < 3)
    return SendClientMessage(playerid,-1,"Trкs membros da gang sгo necessбrios.");
no raio
Reply
#10

Esses valores й vocк quem vai colocar...

Ex:
pawn Код:
if(GangMembersInPoint(playerid, 10, 100.0, -200.0, 13.0) < 3)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)