17.05.2011, 02:41
I'm not the best at SA-MP scripting and i'm coding a server from scratch to train my skills and build my community up.
When I type /b text it works properly, but when I type /ban userid reason it will show up like this:
(( Jonty: an 1 noob ))
So, it's using the /b not the /ban
Can anyone help?
pawn Код:
if(!strcmp(cmdtext, "/b", true, 3))
{
if(!cmdtext[2])return SendClientMessage(playerid, COLOR_ERRORRED, "USAGE: /b [ooc chat]");
new str[128];
GetPlayerName(playerid, str, sizeof(str));
format(str, sizeof(str), "(( %s: %s ))", str, cmdtext[3]);
ProxDetector(10.0, playerid, str, COLOR_FADE1, COLOR_FADE2, COLOR_FADE3, COLOR_FADE4, COLOR_FADE5);
return 1;
}
(( Jonty: an 1 noob ))
So, it's using the /b not the /ban
Can anyone help?