06.10.2013, 04:17
hola nesecito ayuda con este comando de /duda miren esste es el cmd:
CMD:duda(playerid, params[])
{
if(gPlayerLogged{playerid} == 0) return SendClientMessageEx(playerid, COLOR_GREY, "No estбs logeado correctamente.");
if(Info[playerid][pTut] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "No puedes usar este comando en el tutorial.");
if ((nonewbie) && Info[playerid][pAdminZC] < 2) return SendClientMessageEx(playerid, COLOR_GRAD2, "El canal de ayuda estб desactivado por un administrador!");
if(Info[playerid][pNMute] == 1) return SendClientMessageEx(playerid, COLOR_GREY, "Estбs silenciado del canal de ayuda.");
new string[128];
if(NewbieTimer[playerid] > 0)
{
format(string, sizeof(string), "Debes esperar %d segundos para volver a hablar por el canal de ayuda.", NewbieTimer[playerid]);
SendClientMessageEx(playerid, COLOR_GREY, string);
return 1;
}
if(gNewbie[playerid]==1) return SendClientMessageEx(playerid, COLOR_GREY, "Tienes el canal apagado, /togduda para re-habilitarlo!");
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USA: /duda [Texto]");
if(isnumeric(params)) return SendClientMessageEx(playerid, COLOR_GRAD1, "ERROR: No se puede enviar nъmeros por este canal.");
if(Info[playerid][pHelper]<1 && Info[playerid][pAdminZC] < 2)
{
NewbieTimer[playerid] = 50;
}
else if(Info[playerid][pHelper]==1&&Info[playerid][pAdminZC] < 2)
{
NewbieTimer[playerid] = 30;
}
else if(Info[playerid][pAdminZC] == 1)
{
NewbieTimer[playerid] = 30;
}
else if(Info[playerid][pAdminZC] < 2)
{
NewbieTimer[playerid] = 10;
}
if(Info[playerid][pHelper]<1&&Info[playerid][pAdminZC]<1)
{
format(string, sizeof(string), "** {005545}({008C43}Canal /n{005545})[Nivel %d] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if(Info[playerid][pHelper] == 1&& Info[playerid][pAdminZC]<2)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[Ayudante] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if(Info[playerid][pAdminZC] == 1)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[Moderador] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if( Info[playerid][pAdminZC]>= 2)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[ADM] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if(Info[playerid][pAdminZC] >= 9999)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[ADM Dueсo] %s (%s): %s", GetPlayerNameEx(playerid), params);
}
foreach(Player, n)
{
if (gNewbie[n] == 0)
{
SendClientMessageEx(n, COLOR_NEWBIE, string);
}
}
return 1;
}
pero cuando entro a mi server , pongo /duda y quiero poner un texto o algo y aparece esto :
(canal /n) [Admin Dueсo] Rodrigo_Ema (0) :
pero no sale lo que puse es decir despues de el untimo : tendria que salir el mensaje pero no sale porfa me ayudan con esto?
desde ya muchas gracias
CMD:duda(playerid, params[])
{
if(gPlayerLogged{playerid} == 0) return SendClientMessageEx(playerid, COLOR_GREY, "No estбs logeado correctamente.");
if(Info[playerid][pTut] == 0) return SendClientMessageEx(playerid, COLOR_GREY, "No puedes usar este comando en el tutorial.");
if ((nonewbie) && Info[playerid][pAdminZC] < 2) return SendClientMessageEx(playerid, COLOR_GRAD2, "El canal de ayuda estб desactivado por un administrador!");
if(Info[playerid][pNMute] == 1) return SendClientMessageEx(playerid, COLOR_GREY, "Estбs silenciado del canal de ayuda.");
new string[128];
if(NewbieTimer[playerid] > 0)
{
format(string, sizeof(string), "Debes esperar %d segundos para volver a hablar por el canal de ayuda.", NewbieTimer[playerid]);
SendClientMessageEx(playerid, COLOR_GREY, string);
return 1;
}
if(gNewbie[playerid]==1) return SendClientMessageEx(playerid, COLOR_GREY, "Tienes el canal apagado, /togduda para re-habilitarlo!");
if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USA: /duda [Texto]");
if(isnumeric(params)) return SendClientMessageEx(playerid, COLOR_GRAD1, "ERROR: No se puede enviar nъmeros por este canal.");
if(Info[playerid][pHelper]<1 && Info[playerid][pAdminZC] < 2)
{
NewbieTimer[playerid] = 50;
}
else if(Info[playerid][pHelper]==1&&Info[playerid][pAdminZC] < 2)
{
NewbieTimer[playerid] = 30;
}
else if(Info[playerid][pAdminZC] == 1)
{
NewbieTimer[playerid] = 30;
}
else if(Info[playerid][pAdminZC] < 2)
{
NewbieTimer[playerid] = 10;
}
if(Info[playerid][pHelper]<1&&Info[playerid][pAdminZC]<1)
{
format(string, sizeof(string), "** {005545}({008C43}Canal /n{005545})[Nivel %d] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if(Info[playerid][pHelper] == 1&& Info[playerid][pAdminZC]<2)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[Ayudante] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if(Info[playerid][pAdminZC] == 1)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[Moderador] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if( Info[playerid][pAdminZC]>= 2)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[ADM] %s (%d): %s", GetPlayerNameEx(playerid), params);
}
if(Info[playerid][pAdminZC] >= 9999)
{
format(string, sizeof(string), " {005545}({008C43}Canal /n{005545})[ADM Dueсo] %s (%s): %s", GetPlayerNameEx(playerid), params);
}
foreach(Player, n)
{
if (gNewbie[n] == 0)
{
SendClientMessageEx(n, COLOR_NEWBIE, string);
}
}
return 1;
}
pero cuando entro a mi server , pongo /duda y quiero poner un texto o algo y aparece esto :
(canal /n) [Admin Dueсo] Rodrigo_Ema (0) :
pero no sale lo que puse es decir despues de el untimo : tendria que salir el mensaje pero no sale porfa me ayudan con esto?
desde ya muchas gracias