SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 05/05/2010, 09:41 PM   #1
BurrodaZero
Big Clucker
 
Join Date: Apr 2010
Posts: 108
Reputation: 0
Default [DUV] Duvidas Sobre ROBOT

Queria Saber Como Faco para Não banir um Player Caso Ele Seja Admin Aqui meu código
pawn Code:
public ANTIJP(playerid)
{
new string[128];
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && Spawned[i] == 1)
{
if(GetPlayerSpecialAction(i) == 2)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s foi banido Motivo: Jet Pack.",name);
SendClientMessageToAll(COLOR_RED, string);
Ban(playerid);
}
}
}
return 1;
}

Outro é o Erro que Ocorre Aqui no Código
Tipo Quando a Pessoa Usar Estas Armas Proibidas Aparece
Server Closed Connection
Sem ao mesmo Mostrar Mensagem e nao banir
pawn Code:
public AntiHW(playerid)
{
if(GetPlayerWeapon(playerid) == 38||37||36||35)
{
new name[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), " %s foi banido Heavy Weapons.",name);
SendClientMessageToAll(COLOR_RED, string);
Ban(playerid);
}
return 1;
}
BurrodaZero is offline   Reply With Quote
Old 05/05/2010, 09:45 PM   #2
SlashPT
High-roller
 
SlashPT's Avatar
 
Join Date: Sep 2009
Location: Hell
Posts: 1,973
Reputation: 116
Default Re: [DUV] Duvidas Sobre ROBOT

metes por exemplo

pawn Code:
public ANTIJP(playerid)
{
    new
        string[128];
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && Spawned[i] == 1 && !IsPlayerAdmin(playerid))
        {
            if(GetPlayerSpecialAction(i) == 2)
            {
                new
                    name[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                format(string, sizeof(string), "%s foi banido Motivo: Jet Pack.",name);
                SendClientMessageToAll(COLOR_RED, string);
                Ban(playerid);
            }
        }
    }
    return 1;
}
__________________

Zh3r0Jansish
SlashPT is offline   Reply With Quote
Old 05/05/2010, 10:41 PM   #3
BurrodaZero
Big Clucker
 
Join Date: Apr 2010
Posts: 108
Reputation: 0
Default Re: [DUV] Duvidas Sobre ROBOT

Enquanto Problemas da SERVER CLOSED CONNECTION?
BurrodaZero is offline   Reply With Quote
Old 06/05/2010, 03:06 AM   #4
ipsBruno
Godfather
 
ipsBruno's Avatar
 
Join Date: Apr 2010
Location: Brazil, Caxias RS
Posts: 6,084
Reputation: 546
Default Re: [DUV] Duvidas Sobre ROBOT

Aqui Onde tem
pawn Code:
new name[MAX_PLAYER_NAME], string[256];

Muda para :


pawn Code:
new name[MAX_PLAYER_NAME], string[128];

O Maximo Permitido é "128"
__________________
https://github.com/ipsBruno
ipsBruno is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[DUV] Duvidas Sobre Admin BOT BurrodaZero Português/Portuguese 2 07/05/2010 09:49 PM
[Map] [MAP]Robot mihaibr Maps 28 07/05/2010 04:09 PM
[DUVIDAS] Como faço isto?? (várias duvidas) andmeida10 Português/Portuguese 3 18/03/2010 09:06 AM


All times are GMT. The time now is 01:38 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.