Need help with /adminsay.
#3

Try this (Not Tested):

pawn Код:
if(strcmp(cmd, "/adminsay", true) == 0)
{
if (IsPlayerAdmin(playerid))
{
new idx,
result[128],
string5[128],
pname[MAX_PLAYER_NAME];

result = strtok(cmdtext, idx);
GetPlayerName(playerid, pname, sizeof(pname));
if(!strlen(result))
{
SendClientMessage(playerid, VARV_VALGE, "Use: /adminsay [message]");
return 1;
}
format(string5, sizeof(string5), "Administraator %s: %s",pname,result);
SendClientMessageToAll(VARV_VALGE, string5);
}
else SendClientMessage(playerid, VARV_VALGE, "Sa ei ole RCON administraatorina!");
return 1;
}
Reply


Messages In This Thread
Need help with /adminsay. - by Mechscape - 29.01.2010, 14:33
Re: Need help with /adminsay. - by WackoX - 29.01.2010, 15:02
Re: Need help with /adminsay. - by LuxurioN™ - 29.01.2010, 15:06
Re: Need help with /adminsay. - by Mechscape - 29.01.2010, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)