All of the commands are not working
#1

Hello when i create a command,after i login in the server they are not working
My code
PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(
success)
    {
        return 
1;
    }
    if(
strcmp(cmdtext"/help"true) == 0)
    {
        
SendClientMessage(playerid, -1"Available commands:/help ");
        return 
1;
    }
    if(
strcmp(cmdtext"/kill"true) == 0)
    {
        
SetPlayerHealth(playerid0);
        return 
1;
    }
    return 
0;

Reply
#2

Do you have any filterscripts?
Reply
#3

Teleport filterscript.
Whit command /teleport.
Reply
#4

Quote:
Originally Posted by ognyanov
Посмотреть сообщение
Teleport filterscript.
Whit command /teleport.
Try to remove the teleport filterscript from the server.cfg and check if it works.
Reply
#5

What the.Now all of the commands are working.But now i will try to add another filterscript to see are the commands woking corectly.
Reply
#6

Now it's working.The problem was from the filterscript.Thanks for the help +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)