SA-MP Forums Archive
[Ayuda] Comando - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: [Ayuda] Comando (/showthread.php?tid=523155)



[Ayuda] Comando - andresis101 - 30.06.2014

Me ayudan con este comando, El funciona asi es el /p de Rol.

Ej: * Frank_Schneider [Se puede notar mucha gente]

Quiero hacer que el comando me ponga el Rol asi

Ej: * Se puede notar mucha gente ((Frank_Schneider))

(Igual a Fz, esque no entiendo bien)
Aqui el comando
PHP код:
zcmd(pplayeridparams[]){
        if(!
isnull(params)){
            new 
string[128];
            if(
Info[playerid][pMaskuse] == 1format(stringsizeof(string), "* %s (( Desconocido ))."params);
            else 
format(stringsizeof(string), "* %s [ %s ]."GetPlayerNameEx(playerid), params);
            return 
ProxDetector(30.0playeridstringCOLOR_VERDE,COLOR_VERDE,COLOR_VERDE,COLOR_VERDE,COLOR_VERDE);
        }
        else 
SendClientMessageEx(playeridCOLOR_GRAD2"* /p <Acciуn>");
        return 
1
Desde ya gracias


Respuesta: [Ayuda] Comando - Zume - 30.06.2014

pawn Код:
zcmd(p, playerid, params[]){
        if(!isnull(params)){
            new string[128];
            if(Info[playerid][pMaskuse] == 1) format(string, sizeof(string), "* %s (( Desconocido )).", params);
            else format(string, sizeof(string), "* %s ((%s))", params, GetPlayerNameEx(playerid));
            return ProxDetector(30.0, playerid, string, COLOR_VERDE,COLOR_VERDE,COLOR_VERDE,COLOR_VERDE,COLOR_VERDE);
        }
        else SendClientMessageEx(playerid, COLOR_GRAD2, "* /p <Acciуn>");
        return 1;  
}