How to PlayerActionMessage when typing a /cmd - 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: How to PlayerActionMessage when typing a /cmd (
/showthread.php?tid=533444)
How to PlayerActionMessage when typing a /cmd -
khimera - 24.08.2014
Hello everyone. As you see I want to know which variables do I need to put when someone types a cmd for example /calculator it appears an action as the player is using the calculator? Thank you, I will rep +
Re: How to PlayerActionMessage when typing a /cmd -
rockhopper - 24.08.2014
pawn Код:
CMD:calculator(playerid, params[])
{
new name[128],str[128];
GetPlayerName(playerid, name, sizeof(name));
format(str, sizeof(str),"%s Has opened the calculator to Do some sums", name);
SendClientMessage(-1,str);
return 1;
)
Using Zcmd
Re: How to PlayerActionMessage when typing a /cmd -
Stinged - 24.08.2014
Quote:
Originally Posted by rockhopper
pawn Код:
CMD:calculator(playerid, params[]) { new name[128],str[128]; GetPlayerName(playerid, name, sizeof(name)); format(str, sizeof(str),"%s Has opened the calculator to Do some sums", name); SendClientMessage(-1,str); return 1; )
Using Zcmd
|
You're wasting 104 cells.
Use new name[24] or MAX_PLAYER_NAME instead.
Re: How to PlayerActionMessage when typing a /cmd -
khimera - 25.08.2014
Quote:
Originally Posted by rockhopper
pawn Код:
CMD:calculator(playerid, params[]) { new name[128],str[128]; GetPlayerName(playerid, name, sizeof(name)); format(str, sizeof(str),"%s Has opened the calculator to Do some sums", name); SendClientMessage(-1,str); return 1; )
Using Zcmd
|
Ty bro, will try it.