OnPlayerCommandPerformed Flooding - 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: OnPlayerCommandPerformed Flooding (
/showthread.php?tid=554689)
OnPlayerCommandPerformed Flooding -
Montanna - 04.01.2015
Код:
public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
{
{
if(!success) return SCM(playerid,-1,"[INFO] "RED"You have entered the wrong command | type /commands for a list of commands!");
return 0;
}
new string[128];
format(string,sizeof(string),"Player %s | Commands: %s",GetName(playerid),cmdtext); LogKomandi(string);
return 1;
}
This is my code , however, whatever command I type InGame, whether it is successful or not, this code spams more than once.
Re: OnPlayerCommandPerformed Flooding -
MrViolence101 - 10.01.2015
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
{
if(!success) return SCM(playerid,-1,"[INFO] "RED"You have entered the wrong command | type /commands for a list of commands!");
new string[128];
format(string,sizeof(string),"Player %s | Commands: %s",GetName(playerid),cmdtext); LogKomandi(string);
return 1;
}
Re: OnPlayerCommandPerformed Flooding -
MrViolence101 - 10.01.2015
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[ ],success)
{
if(!success) return SCM(playerid,-1,"[INFO] "RED"You have entered the wrong command | type /commands for a list of commands!");
return 1;
}