Quote:
|
Originally Posted by [Hunter
]
Hey im trying to Block commands when in DM for example
EDIT: Ok i almost got it to work but now...
pawn Код:
if(strcmp(cmdtext, "/stuntbonus",true)==0) { EnableStuntBonusForPlayer(playerid, 1); SendClientMessage(playerid, COLOR_AQUA,"Stunt Bonus Enabled !"); } return 1; } //////////////////////////////////////////////////////////////////////////////////// else { SendClientMessage(playerid, COLOR_RED, "You Are in a DM, type /kill or /ifarted to exit !"); } return 1; }
but i get this
pawn Код:
C:\Users\Compaq_Administrator\Desktop\All Files\0.2x\gamemodes\Test3.pwn(3329) : error 010: invalid function or declaration C:\Users\Compaq_Administrator\Desktop\All Files\0.2x\gamemodes\Test3.pwn(3333) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
|
try this:
pawn Код:
if(strcmp(cmdtext, "/stuntbonus",true)==0)
{
EnableStuntBonusForPlayer(playerid, 1);
SendClientMessage(playerid, COLOR_AQUA,"Stunt Bonus Enabled !");
return 1;
}
////////////////////////////////////////////////////////////////////////////////////
else
{
SendClientMessage(playerid, COLOR_RED, "You Are in a DM, type /kill or /ifarted to exit !");
return 1;
}