Command not working
#1

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.
Reply
#2

can you show your
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
of gamemode and filterscript
Reply
#3

Within your filterscript, ensure you are returning 0 under OnPlayerCommandText.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)