28.05.2010, 18:56
Hey guys, Right so lets get this straight I'm not very good at scripting, So please don't think i'm a total noob
Anyway i've modifed the /me command from samp wiki to work as Admin: Message But its not working
Heres my code, And i want it to say Admin: [TYPEYOURTEXT]
Heres my code.if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
Right only reply if you can help, Thanks
(Jay)
Anyway i've modifed the /me command from samp wiki to work as Admin: Message But its not working
Heres my code, And i want it to say Admin: [TYPEYOURTEXT]
Heres my code.if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
Код:
if(!strcmp(cmdtext, "/ad", true, 3)) // 3 is the length of /me { if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]"); new str[128]; format(str, sizeof(str), "Admin: ", str, cmdtext[4]); SendClientMessageToAll(0xFFFF00AA, str); return 1; }
(Jay)