29.05.2016, 16:16
PHP код:
CMD:me(playerid, params[])
{
new
name [ MAX_PLAYER_NAME ],
string [ 128 ],
action [ 100 ];
if(sscanf(params, "s[100]", action)) {
SendClientMessage(playerid, 0xAA3333AA, "[ERREUR]Utilise : /me [action]");
return 1;
}
else {
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s %s", name, action);
SendClientMessage(playerid, -1, string);
}
return 1;
}