Command 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: Command not working (
/showthread.php?tid=382672)
Command not working -
ixesas - 04.10.2012
Hello guys, i have problem right here and i can't solve it by myself..
So, i created my own vehicle spawn script in filterscript. And the problem is - when i load vehicle script, gamemode commands doesn't works. And when i unload filterscripts, gamemode commands starting to work. How can i fix it?
Includes i'm using in gamemode:
onplayerpause
zcmd
streamer
foreach
Help, thanks.
Re: Command not working -
Danyal - 04.10.2012
can you show your
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
of gamemode and filterscript
Re: Command not working -
zDevon - 04.10.2012
Within your filterscript, ensure you are returning 0 under OnPlayerCommandText.
Re: Command not working -
ixesas - 04.10.2012
Quote:
Originally Posted by Danyal
can you show your
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
of gamemode and filterscript
|
Gamemode:
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
if(!success)
{
SendClientMessage(playerid,0xFF0000FF, "SERVERIS: Tokios komandos nлra!");
return 1;
}
return 1;
}
Quote:
Originally Posted by zDevon
Within your filterscript, ensure you are returning 0 under OnPlayerCommandText.
|
Lol srsly, changed fs commandtext return into 0 and now it's working. Thanks