02.03.2010, 16:06
I have cmds like:
But if you can help me? show how to make his command to hello or to say bye to certain player
like: /hello(/bb)[playerid]
Код:
if (strcmp("/hello", cmdtext, true, 10) == 0) { new pName[MAX_PLAYER_NAME]; new string[48]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "%s Said hi to all", pName); SendClientMessageToAll(0x3CFF00AA, string); return 1; } if (strcmp("/bb", cmdtext, true, 10) == 0) { new pName[MAX_PLAYER_NAME]; new string[48]; GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "%s said bye", pName); SendClientMessageToAll(0x3CFF00AA, string); return 1; }
like: /hello(/bb)[playerid]