04.02.2016, 12:57
*sigh* How about trying to do it a bit by yourself so we can actually help instead of writing the entire script ourselves? Create an IsADuty local variable to determine if the player is on aduty or not, it is for future usage. Then hit CTRL+F and type CMD:b(playerid,params[]) and create an if statement like this;
then define a string, a name variable like this;
Then get the player's name by;
Then format your string by;
then close the bracket with } and it should work
PHP Code:
if(IsADuty[playerid] == 1) {
PHP Code:
new string[128],name[MAX_PLAYER_NAME]; // Don't forget to optimize the string's cells for your needs.
PHP Code:
GetPlayerName(playerid,name,sizeof(name));
PHP Code:
format(string,sizeof(string),"(( {00FF00}%s: {FFFFFF}%s ))",name,your sscanf /b text parameter here);
YourLocalChatFunctionHere