Quote:
Originally Posted by grand.Theft.Otto
Here's an example of what you would do:
pawn Код:
// top of script
new InDM[MAX_PLAYERS]; // starting the variable
// kill command
InDm[playerid] = 0; // so the server knows when they die, they will not be in the dm anymore
// teleport menu selection (for when they teleport)
InDM[playerid] = 1;
// /teles command
if(InDM[playerid] == 1) { return SendClientMessage(playerid,color,"You must exit this DM before you go to a new one. Type /kill first"); }
// onplayerdeath
InDM[playerid] = 0;
Hope you understand. You should get the idea?
|
Thanks
It workes but is there a way to disable the menu?
because the menu still shows and you can use it to tp :P
and when you select a tp it says you must type /kill lol
Thanks anyways