All of the commands are not working - 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: All of the commands are not working (
/showthread.php?tid=583776)
All of the commands are not working -
ognyanov - 30.07.2015
Hello when i create a command,after i login in the server they are not working
My code
PHP код:
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;
}
Re: All of the commands are not working -
TheSnaKe - 30.07.2015
Do you have any filterscripts?
Re: All of the commands are not working -
ognyanov - 30.07.2015
Teleport filterscript.
Whit command /teleport.
Re: All of the commands are not working -
TheSnaKe - 30.07.2015
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.
Re: All of the commands are not working -
ognyanov - 30.07.2015
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.
Re: All of the commands are not working -
ognyanov - 30.07.2015
Now it's working.The problem was from the filterscript.Thanks for the help +rep