SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Español/Spanish

Reply
 
Thread Tools Display Modes
Old 14/03/2012, 02:16 AM   #1
Lucas,
Big Clucker
 
Join Date: Feb 2012
Posts: 67
Reputation: 0
Default [Ayuda] /Announce y /Report

es el siguiente, para que el / announce, pero cuando entro en el juego y poner NBO dice que no se me permite ser lo que soy a nivel de derecho de utilizar el comando, como fue probado con todos y no transmitir.

Code:

PHP Code:
COMMAND:asay(playerid,params[])
{
    new 
id;
    if(
PlayerInfo[playerid][pAdminLevel] >= 1) return SendClientMessage(playerid,COLOR_RED,"Você não tem permissão para fazer isso!");
    if(
sscanf(params,"u",id)) return SendClientMessage(playerid,COLOR_GREY,"USE: /asay [texo]");
    
format(String,sizeof(String),"{FFFF00}(Admin {FF0000}%s{FFFF00}): {FFFFFF}%s",Name[playerid]);
    
SendClientMessageToAll(COLOR_RED,String);
    return 
1;

//------------------------------------------------------------------------------------------\\

ya /report No sé cómo hacer lo siguiente /report motivo de Identificación, ya que el jugador pone la razón /report para mí si pueden conseguir este comando, gracias.

Code:

PHP Code:
COMMAND:report(playerid,params[])
{
        new 
report[100];
        if(
sscanf(params,"s",report)) return SendClientMessage(playerid,COLOR_GREY,"USE: /report [ID] [Rasão]");
        
SendClientMessage(playerid,COLOR_GREEN,"Report Enviado!");
        for(new 
admins;admins MAX_PLAYERSadmins++)
    {
        if(
PlayerInfo[admins][pAdminLevel] >1)
        
format(String,sizeof(String),"{FF0033}Report de {FFFFFF}%s {FF0033}[Rasão]: %s");
        
SendClientMessage(admins,COLOR_ORANGE,String);
        
        break;
    }

        return 
1;

PS: BR estoy recordando.
más en los chicos están fuera de línea BR
__________________
Te ajudei?
Clica ali nessa imagem:
Lucas, is offline   Reply With Quote
Old 14/03/2012, 02:37 AM   #2
junkbuster
Huge Clucker
 
junkbuster's Avatar
 
Join Date: Oct 2010
Posts: 257
Reputation: 2
Default Respuesta: [Ayuda] /Announce y /Report

pawn Code:
COMMAND:asay(playerid,params[])
{
    new id[128], String[128];
    if(PlayerInfo[playerid][pAdminLevel] == 0) return SendClientMessage(playerid,COLOR_RED,"Você não tem permissão para fazer isso!");
    if(sscanf(params,"s[128]",id)) return SendClientMessage(playerid,COLOR_GREY,"USE: /asay [texo]");
    format(String,sizeof(String),"{FFFF00}(Admin {FF0000}%s{FFFF00}): {FFFFFF}%s",Name[playerid]);
    SendClientMessageToAll(COLOR_RED,String);
    return 1;
}


Para el comando de reportar:

pawn Code:
COMMAND:report(playerid,params[])
{
        new report[100], giveplayerid;
        if(sscanf(params,"us[100]",giveplayerid,report)) return SendClientMessage(playerid,COLOR_GREY,"USE: /report [ID] [Rasão]");
        SendClientMessage(playerid,COLOR_GREEN,"Report Enviado!");
        for(new admins;admins < MAX_PLAYERS; admins++)
    {
        if(PlayerInfo[admins][pAdminLevel] >1)
        format(String,sizeof(String),"{FF0033}Report de {FFFFFF}%s {FF0033}[Rasão]: %s");
        SendClientMessage(admins,COLOR_ORANGE,String);
         
        break;
    }

        return 1;
}
junkbuster is offline   Reply With Quote
Old 14/03/2012, 02:43 AM   #3
Lucas,
Big Clucker
 
Join Date: Feb 2012
Posts: 67
Reputation: 0
Default Re: [Ayuda] /Announce y /Report

PHP Code:
COMMAND:report(playerid,params[])
{
        new 
report[100];
        new 
giveplayeridreason[64];
        if(
sscanf(params"us[64]"giveplayeridreason)) return Message(playeridCOLOR_GREY"USE: /report [id] [rasão]");
        
SendClientMessage(playerid,COLOR_GREEN,"Report Enviado!");
        for(new 
admins;admins MAX_PLAYERSadmins++)
    {
        if(
PlayerInfo[admins][pAdminLevel] >1)
        
format(String,sizeof(String),"{FF0033}Report de {FFFFFF}%s {FF0033}[Rasão]: %s");
        
SendClientMessage(admins,COLOR_ORANGE,String);
        
        break;
    } 
Code:
C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\pAdmin.pwn(187) : error 017: undefined symbol "Message"
C:\Documents and Settings\Lucas8\Desktop\DM-4FUN\filterscripts\pAdmin.pwn(185) : warning 204: symbol is assigned a value that is never used: "report"
no se puede hacer este comando para mí no?
__________________
Te ajudei?
Clica ali nessa imagem:
Lucas, is offline   Reply With Quote
Old 14/03/2012, 02:46 AM   #4
junkbuster
Huge Clucker
 
junkbuster's Avatar
 
Join Date: Oct 2010
Posts: 257
Reputation: 2
Default Respuesta: [Ayuda] /Announce y /Report

Mi error perdon:

pawn Code:
COMMAND:report(playerid,params[])
{
    new giveplayerid, reason[64];
    if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR, "USE: /report [id] [rasão]");
    SendClientMessage(playerid,COLOR_GREEN,"Report Enviado!");
    for(new admins;admins < MAX_PLAYERS; admins++)
    {
        if(PlayerInfo[admins][pAdminLevel] >= 1)
        {
            format(String,sizeof(String),"{FF0033}Report de {FFFFFF}%s {FF0033}[Rasão]: %s", reason);
            SendClientMessage(admins,COLOR_ORANGE,String);
            break;
        }
    }
    return 1;
}
junkbuster 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
[Ayuda] Con el Comando /announce [Nikk] Español/Spanish 2 02/12/2011 02:35 AM
Announce viosteaua98 Scripting Help 8 22/10/2011 07:09 PM
A Better Report System Than /report [id] [reason] SantarioLeone Scripting Help 7 09/10/2011 07:23 PM
Ayuda! colores en announce martini002 Español/Spanish 4 11/04/2011 11:59 PM
/report - Adding Date and Time when a player does /report ? Castle Help Archive 2 02/04/2009 06:42 AM


All times are GMT. The time now is 04:44 PM.


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