16.06.2010, 16:30
Quote:
Originally Posted by WSD
How about this:
Код:
if(strcmp(cmd, "/me", true) == 0) { new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s watches.",name); SendClientMessageToAll(YOUR_COLOR, string); return 1; } |
My /me command is this ( I hope you donґt ask again for a whole command and you learn to script -.-*
Quote:
dcmd_me(playerid,params[]) { new ReturnPlayer; if(PlayerIsMuted[ReturnPlayer] == 1) return SendClientMessage(playerid, COLOR_BRIGHTRED, "You canґt speak. You are muted!"); new string[128]; if(!strlen(params)) return SendClientMessage(playerid, COLOR_BRIGHTRED, "Usage: /me <action>."); format(string, sizeof(string), "* %s %s", pNick(playerid), params); SendClientMessageToAll(COLOR_LIGHTBLUE, string); return 1; } stock pNick(playerid) { new nick[MAX_PLAYER_NAME]; GetPlayerName(playerid, nick, MAX_PLAYER_NAME); return nick; } |