16.11.2013, 01:30
(
Последний раз редактировалось ValenRatti; 16.11.2013 в 02:38.
)
EDIT: Pude solucionar mi problema pero ahora no me funciona como quiero... Osea por mas que tenga los PMS bloqueados le deja mandarle un whisper.
pawn Код:
CMD:w(playerid, params[])
{
new whis[128], string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
if(Info[params[0]][pAdminZC] < 0) return SendClientMessageEx(playerid, COLOR_WHITE, "Solo puedes /w con adminsitradores!");
if(HidePM[params[0]] == 1) return SendClientMessageEx(playerid, COLOR_WHITE, "Ese adminsitrador tiene los susurros bloqueados!!");
if(sscanf(params, "ds[128]", params[0], whis)) return SendClientMessageEx(playerid, COLOR_GRAD2, "/w [id] [texto]");
if(IsPlayerConnected(params[0]))
{
format(string, sizeof(string), "Mensaje de %s (%d): %s", GetPlayerNameEx(playerid), playerid, whis);
SendClientMessageEx(params[0], 0xEEB711FF, string);
format(string, sizeof(string), "Mensaje a %s (%d): %s", GetPlayerNameEx(params[0]), params[0], whis);
SendClientMessageEx(playerid, 0xEEB711FF, string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(Info[i][pAdminZC] >= 1338)
{
if(See_MP[i] == 1)
{
format(string, sizeof(string), "[R: %s(%d) a User %s(%d): {FFFFFF}%s", GetPlayerNameEx(playerid), playerid, GetPlayerNameEx(params[0]), params[0], params[1]);
SendClientMessageEx(i, 0xEEB711FF, string);
}
}
}
}
else SendClientMessageEx(playerid, COLOR_GRAD2, "Esa ID es invбlida.");
return 1;
}
pawn Код:
CMD:togpm(playerid, params[])
{
if(Info[playerid][pAdminZC] < 1) return SendClientMessageEx(playerid, COLOR_GRAD2, "[ERROR]: No puedes usar este comando.");
if(HidePM[playerid] == 1)
{
HidePM[playerid] = 0;
SendClientMessageEx(playerid, COLOR_GRAD2, "ЎPMs Bloqueados!");
}
else
{
HidePM[playerid] = 1;
SendClientMessageEx(playerid, COLOR_GRAD2, "ЎPMs desbloqueados!");
}
return 1;
}