28.07.2011, 20:10
Here's an example of what you would do:
Hope you understand. You should get the idea?
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;