14.07.2012, 13:36
like /a ?
if yes there u are , use ZCMD
if works Rep+ me
if yes there u are , use ZCMD
pawn Код:
CMD:a(playerid, params[])
{
new string[512];
new pName[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pAdmin] >= 1) //i dont know your admin variables xD
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
GetPlayerName(playerid, Name, sizeof(Name));
format(string, sizeof(string), "[ADMINCHAT]:%s ( %s )", pName, params);
SendClientMessage(i, COLOR_WHITE,string);
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]:You need to be an [ADMIN] to use this Commands!");
}
return 1;
}
