19.10.2013, 22:08
Can I have the command for help and exit please. The current game mode I have doesn't have cmd /help or exit installed I need it for my server thanks.
CMD:help(playerid, params[]) { SendClientMessage(playerid, red, "to quit the game, /q"); return 1; }
CMD:help(playerid, params[])
{
SendClientMessage(playerid, -1, "whatever you want here");
SendClientMessage(playerid, -1, "whatever you want here");
SendClientMessage(playerid, -1, "whatever you want here");
return 1;
}
new InDM[MAX_PLAYERS] //ontop of the script, create this variable
//Make a /kill command (SetPlayerHealth to 0) and add this after that:
InDM[playerid] = 0;
//Add this in the command you use to teleport to a DM.
InDM[playerid] = 1;
//Put this after the commands you want to disable while a player is in a DM.
if(InDM[playerid] == 1)
{
return SendClientMessage(playerid,color,"You must exit this DM before you go to a new one. Type /kill first");
}
//Put this inside OnPlayerDeath
InDM[playerid] = 0;
pawn Код:
pawn Код:
|