It does not have anything of complication, is simpler than you think.
PHP код:
CMD:ann(playerid, params[])
{
new message[145];
if(sscanf(params, "s[145]", message)) return SendClientMessage(playerid, -1, "/announce [message]");
GameTextForAll(message, 5000, 3);
return 1;
}
CMD:slap(playerid, params[])
{
if(sscanf(params, "d", params[0])) return SendClientMessage(playerid, -1, "/slap [playerid]");
if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, -1, "Disconnected player");
new Float:pos[3];
GetPlayerPos(params[0], pos[0], pos[1], pos[2]);
SetPlayerPos(params[0], pos[0], pos[1], pos[2]+8.0);
return 1;
}