30.03.2013, 08:57
This is my code for the /o
I'm trying to change it so that the rank shows before the name. I tried adding things like this under the script..
And I didn't get any errors, although when I went ingame, nothing appeared to change. I would be very appreciative if somebody could fix my script, using the above sort of text, so that all the administrator ranks from 1-6 and helper ranks from 1-2 (which just changes from pAdmin to pHelper) show up before the players name.
Regards,
Код:
CMD:o(playerid, params[])
{
new say[256];
if(togo[playerid] == 0) return SendClientMessage(playerid, COLOR_CYAN, "You have not enabled OOC chat. Type /togooc if you wish to toggle it.");
if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /o [text]");
if(sscanf(params, "s[256]", say))
{
SendClientMessage(playerid, -1, "USAGE: /o [text]");
}
new str[256];
format(str, 256, "(( %s says: %s ))", GetName(playerid), say);
SCMTO(str);
return 1;
}
Код:
if(PlayerInfo[playerid][pAdmin] == 6)
{
format(str, 256, "Server Director %s: %s", GetName(playerid), say);
return 1;
}
Regards,

