Need a normal Announce / Slap command. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need a normal Announce / Slap command. (
/showthread.php?tid=662069)
Need a normal Announce / Slap command. -
Malph - 22.12.2018
Hey

i want someone to make a simple Announce / Slap command for me.
and dont add an admin level require thingy.
make it ZCMD please! <3
Re: Need a normal Announce / Slap command. -
Undef1ned - 23.12.2018
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;
}