Quote:
Originally Posted by playbox12
Sigh, please read a bit better, I am quite getting tired so I just fix your code
pawn Код:
command(ann, playerid, params[]) { new Announcement[128]; if( sscanf( params, "s[128]", Announcement) ) { if( Player[playerid][AdminLevel] >= 1 ) { SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" ); } } else { if( Player[playerid][AdminLevel] >= 1) { if(strlen(Announcement) >= 1) { GameTextForAll(Announcement, 5000, 3 ); } else { SendClientMessage( playerid, WHITE, "SYNTAX: /ann [message]" ); } } } return 1; }
YES!!
|
Hmm.. Thank you but still not working. if i type "/ann test" it just say "SYNTAX: /ann [message]" as a ClientMessage.