26.04.2009, 12:56
I want that whenever a player types /service mechanic a message gets sent to all mechanics and tells them "%s is looking for a mechanic!"..
Here is the code I used but I have no idea what I am doing:
Here is the code I used but I have no idea what I am doing:
Код:
if (strcmp(cmdtext, "/service mechanic", true) == 0)
{
new conname[MAX_PLAYER_NAME];
new string[48];
GetPlayerName(playerid, conname, sizeof(conname));
format(string, sizeof(string), "%s needs a Mechanic.",conname);
SendClientMessageToAll(ORANGE, string);
return 1;
}

