11.02.2009, 16:27
So i maked simple /gmx command.. and when i type /gmx nothing ...
so the code's ive been using without any luck ..
First Code :
Then i tried using it like this :
so the code's ive been using without any luck ..
First Code :
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
if (IsPlayerAdmin(playerid))
{
GameModeExit();
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
return 1;
}
pawn Код:
//--------------------------------------SERVER REBOOT------------------------------------
if(strcmp(cmd, "/gmx", true) == 0)
{
if (IsPlayerAdmin(playerid)) return SendRconCommand("gmx");
else return SendClientMessage(playerid, COLOR_GRAD1, " not authorized to use this command!");
}