[Pedido] Sistema de ban
#1

Galera eu queria saber como fazer aquele /ban sem motivo.
e que sу aparece o You banned From Server Que aparece no Prуprio samp.
Reply
#2

pawn Код:
CMD:ban(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й admin.");
    if(!strval(params)) return SendClientMessage(playerid, -1, "Use: /Ban [ID]");
    if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, -1, "Jogador nao conectado.");
    Ban(strval(params));
    return 1;
}
Tenta ae
Reply
#3

Se usa a include SII , Ne?
Reply
#4

Ali sу precisa da inc zcmd.
Reply
#5

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
pawn Код:
CMD:ban(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й admin.");
    if(!strval(params)) return SendClientMessage(playerid, -1, "Use: /Ban [ID]");
    if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, -1, "Jogador nao conectado.");
    Ban(strval(params));
    return 1;
}
Tenta ae
Deu os Seguintes Erros.:
Код HTML:
F:\GM\gamemodes\BPS.pwn(34882) : error 029: invalid expression, assumed zero
F:\GM\gamemodes\BGM.pwn(34882) : error 017: undefined symbol "cmd_ban"
F:\GM\gamemodes\BGM.pwn(34882) : error 029: invalid expression, assumed zero
F:\GM\gamemodes\BGM.pwn(34882) : fatal error 107: too many error messages on one line
Reply
#6

#include <zcmd>

topo do GM /\
Reply
#7

Quote:
Originally Posted by Gustavo_FAB
Посмотреть сообщение
Deu os Seguintes Erros.:
Код HTML:
F:\GM\gamemodes\BPS.pwn(34882) : error 029: invalid expression, assumed zero
F:\GM\gamemodes\BGM.pwn(34882) : error 017: undefined symbol "cmd_ban"
F:\GM\gamemodes\BGM.pwn(34882) : error 029: invalid expression, assumed zero
F:\GM\gamemodes\BGM.pwn(34882) : fatal error 107: too many error messages on one line
Jб existe o comando /ban.
E veja se vocк estб com a include ZCMD no topo de seu Gamemode.
Reply
#8

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
#include <zcmd>

topo do GM /\
Continua o Mesmo Problema
Reply
#9

Quote:
Originally Posted by humildadeforever
Посмотреть сообщение
pawn Код:
CMD:ban(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Vocк nгo й admin.");
    if(!strval(params)) return SendClientMessage(playerid, -1, "Use: /Ban [ID]");
    if(!IsPlayerConnected(strval(params))) return SendClientMessage(playerid, -1, "Jogador nao conectado.");
    Ban(strval(params));
    return 1;
}
Tenta ae
Entгo o ID 0 nгo conta?
Reply
#10

Quote:
Originally Posted by Pedro_Miranda
Посмотреть сообщение
Entгo o ID 0 nгo conta?
Esqueci kkkk. Depois corrijo, estou no celular agora.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)