20.07.2013, 09:06
First , I dont know why my previous topic was deleted ! So if by mistake I broke a rule please pm me ..
Here's the question :
stock SendAdminMessage(text[])
{
for (new pid; pid<MAX_PLAYERS; pid++)
{
If(IsPlayerAdmin(pid)
{
SendClientMessage(pid,SOME_COLOR,GetPlayerName(pid )+":"+text);
return 1;
}
}
}
//after including zcmd
CMD:a(playerid,params[])
{
SendAdminMessage(params);
return 1;
}
//this code compiles fine but nothing shows up when i do /a some text here
//also dos not show an UNKNOWN COMMAND error
//what to do ?
Here's the question :
stock SendAdminMessage(text[])
{
for (new pid; pid<MAX_PLAYERS; pid++)
{
If(IsPlayerAdmin(pid)
{
SendClientMessage(pid,SOME_COLOR,GetPlayerName(pid )+":"+text);
return 1;
}
}
}
//after including zcmd
CMD:a(playerid,params[])
{
SendAdminMessage(params);
return 1;
}
//this code compiles fine but nothing shows up when i do /a some text here
//also dos not show an UNKNOWN COMMAND error
//what to do ?