19.02.2012, 22:47
PHP код:
command(me, playerid, params[]) {
new
string[128];
if(isnull(params)) {
return SendClientMessage(playerid, WHITE, "SYNTAX: /me [action]");
}
else {
if(Player[playerid][PrisonID] == 1) {
SendClientMessage(playerid, WHITE, "You're unable to do this right now!");
}
else {
format(string, sizeof(string), "* %s %s", GetNameU(playerid), params);
NearByMessage(playerid, NICESKY, string);
Player[playerid][MeActions]++;
}
}
return 1;
}