[Ajuda] Alguem Sabe?
#1

Alguйm sabe como faзo pra bloquear todos os comandos no zcmd..

Exemplo:

PHP код:
if(tanoevento[playerid] == 1) return SendClientMessage(playeridred"Nгo й possнvel usar nenhum comando enquanto estiver no evento."); 
Grato desde jб!
Reply
#2

PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
tanoevento[playerid] == 1) return SendClientMessage(playerid, -1"Nгo й possнvel usar nenhum comando enquanto estiver no evento."),0;
    return 
1;

Reply
#3

Obrigado Cara, precisava disso! Vlw
Reply
#4

Aproveitando a deixa:
PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
arena[playerid] == 1) return SendClientMessage(playerid, -1"Nгo й possнvel usar nenhum comando enquanto estiver no evento."), 0;
    return 
true;
    if(
Flood[playerid] > GetTickCount())
    return 
SendClientMessage(playerid, -1"Aguarde 5 segundos usar comandos novamente!"), 0;

    
Flood[playerid] = GetTickCount() + 5000;

    return 
true;

Код:
(1476) : warning 225: unreachable code
Linha (1476): if(Flood[playerid] > GetTickCount())
Poderia ajudar?
Reply
#5

Quote:
Originally Posted by Stroon
Посмотреть сообщение
Aproveitando a deixa:
PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
arena[playerid] == 1) return SendClientMessage(playerid, -1"Nгo й possнvel usar nenhum comando enquanto estiver no evento."), 0;
    return 
true;
    if(
Flood[playerid] > GetTickCount())
    return 
SendClientMessage(playerid, -1"Aguarde 5 segundos usar comandos novamente!"), 0;
    
Flood[playerid] = GetTickCount() + 5000;
    return 
true;

Код:
(1476) : warning 225: unreachable code
Linha (1476): if(Flood[playerid] > GetTickCount())
Poderia ajudar?
Vocк estб retornando suas vezes:
PHP код:
public OnPlayerCommandReceived(playeridcmdtext[])
{
    if(
arena[playerid] == 1) return SendClientMessage(playerid, -1"Nгo й possнvel usar nenhum comando enquanto estiver no evento."), 0;
    if(
Flood[playerid] > GetTickCount())
    return 
SendClientMessage(playerid, -1"Aguarde 5 segundos usar comandos novamente!"), 0;
    
Flood[playerid] = GetTickCount() + 5000;
    return 
true;

Reply
#6

Vlw final. rep add.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)