22.07.2011, 09:48
(
Последний раз редактировалось array13; 22.07.2011 в 11:23.
)
ZCMD:
estou a tratar do dcmd
PHP код:
COMMAND:asay(playerid, params[])
{
new Name[24], Msg[128], Message[128];
SendAdminText(playerid, "/asay", params);
GetPlayerName(playerid, Name, sizeof(Name));
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] > 3)
{
if (sscanf(params, "s[128]", Message)) SendClientMessage(playerid, 0xFF0000AA, "Usage: \"/asay <Your Message>\"");
else
{
for (new i; i < MAX_PLAYERS; i++)
{
if (APlayerData[i][LoggedIn] == true)
{
if (APlayerData[i][PlayerLevel] > 3)
{
format(Msg, 128, "Adm chat-->admin{B0B0B0}%s said: {FFFFFF}%s", Name, Message);
SendClientMessage(i, 0x33AA33AA, Msg);
}
}
}
}
}
else
return 0;
}
else
return 0;
return 1;
}