PDA

View Full Version : All of the commands are not working


ognyanov
31/07/2015, 12:19 AM
Hello when i create a command,after i login in the server they are not working
My code

public OnPlayerCommandPerformed(playerid, cmdtext[], 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(playerid, 0);
return 1;
}

return 0;
}

TheSnaKe
31/07/2015, 12:24 AM
Do you have any filterscripts?

ognyanov
31/07/2015, 12:27 AM
Teleport filterscript.
Whit command /teleport.

TheSnaKe
31/07/2015, 12:31 AM
Teleport filterscript.
Whit command /teleport.

Try to remove the teleport filterscript from the server.cfg and check if it works.

ognyanov
31/07/2015, 12:34 AM
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.

ognyanov
31/07/2015, 12:39 AM
Now it's working.The problem was from the filterscript.Thanks for the help +rep