/exitdm
#1

Hello!
I have this command
pawn Код:
if(strcmp(cmdtext,"/exitdm",true)==0)
    {
    DMArea[playerid] = 0;
    if(DMArea[playerid] != 1) return SendClientMessage(playerid,red,"You are not in a DM area (/dms)!");
    new rand;
    rand = random(8);
    rand++;
    switch(rand)
    {
    case 1: SetPlayerPos(playerid, 2090.6289,2073.8262,10.8203);
    case 2: SetPlayerPos(playerid,2025.2324,1008.1907,10.8203);
    case 3: SetPlayerPos(playerid,2130.3479,1332.9777,10.8263);
  case 4: SetPlayerPos(playerid, 2194.6714,1677.6198,12.3672);
    case 5: SetPlayerPos(playerid,2281.2207,1394.5282,42.8203);
    case 6: SetPlayerPos(playerid,1319.3940,1254.9871,10.8203);
    case 7: SetPlayerPos(playerid,-1363.4878,-264.2943,14.1484);
    case 8: SetPlayerPos(playerid,-1528.9470,536.7141,7.1797);
    case 9: SetPlayerPos(playerid,-2624.2734,1402.2373,7.1016);
    }
    return 1;
    }
I also have some commands like /s /l /n /v that are not allowed in DM areas!

When i tpye /exitdm it teleports me to some other area but i still cant use the forbiden commands from DM areas like /s /l /n /v!

What is the problem??

Thanks
Reply
#2

BUMP!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)