Help/exit command needed - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help/exit command needed (
/showthread.php?tid=470837)
Help/exit command needed -
Cirno9 - 19.10.2013
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.
Re: Help/exit command needed -
Superhot - 19.10.2013
Код:
CMD:help(playerid, params[])
{
SendClientMessage(playerid, red, "to quit the game, /q");
return 1;
}
Re: Help/exit command needed -
Cirno9 - 19.10.2013
Quote:
Originally Posted by Superhot
Код:
CMD:help(playerid, params[])
{
SendClientMessage(playerid, red, "to quit the game, /q");
return 1;
}
|
Err I meant when in a game mode where a player would ask for help by typing help to get info of the game play and where when a player is in a dm and wants to exit not quit the game to get back to where they were before they joined a warzone (spawn back to player spawn) same thing with derby. The players know what quit is they need to know what the game play is by typing /help to get the info of how to play well and if they want to exit a warzone dm by typing /exit to spawn back to where they were. Come on
Re: Help/exit command needed -
Twizted - 19.10.2013
pawn Код:
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;
}
EDIT: You posted before I did, so this is what you need:
pawn Код:
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;
Re: Help/exit command needed -
Cirno9 - 19.10.2013
Quote:
Originally Posted by Twizted
pawn Код:
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; }
EDIT: You posted before I did, so this is what you need:
pawn Код:
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;
|
Thanks for the help there is one more thing I do need is a help command. Like for exsample : To want to know how to play in turf war type /help for more info. [Info about game play of how to take over turfs and rules so players know who to obey the rules].
Re: Help/exit command needed -
Cirno9 - 19.10.2013
Nvm. Thanks your very helpful now I can add a help command.