28.04.2011, 20:49
pawn Код:
new IsPlayerInDMzone[MAX_PLAYERS];
COMMAND:minigun(pplayerid, params[])
{
IsPlayerInDMzone[playerid] = 1;
//stuff stuff
}
COMMAND:leavedm(playerid, params[])
{
IsPlayerInDMzone[playerid] = 0;
//stuff stuff
}
COMMAND:anothercommand(playerid, params[])
{
if(IsPlayerInDMzone[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFAA, "You cannt teleport to another place when your in a DM zone use /leavedm first!");
//stuff stuff
}