OnPlayerCommandPerformed Flooding
#1

Код:
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.
Reply
#2

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;
}
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)