Player in dm
#8

Hm.. If I'm not wrong, your code check if you are in the DM area or not... So then if you (the command submitter) are not in the DM area, you can teleport to any player.

I'll try to make you a command (from zcmd)..

pawn Код:
cmd(gotop, playerid, params[])
{
    new id;
    if( sscanf( params, "u", id) )
    {
        SendClientMessage(playerid, [color], "Use /gotop [playerid]!");
     }
     else
     {
         if(InParkour[id] == 1)
         {
             SendClientMessage(playerid, [color], "That player is in parkour area!");
        }
        else if(InDM[id] == 1)
        {
            SendClientMessage(playerid, [color], "That player is in DM area!");
        }
        else
        {
            // Your code goes here
        }
    }
    return 1;
}
Reply


Messages In This Thread
Player in dm - by ColdXX - 09.10.2010, 19:09
Re: Player in dm - by ColdXX - 10.10.2010, 17:52
Re: Player in dm - by JaTochNietDan - 10.10.2010, 18:55
Re: Player in dm - by ColdXX - 11.10.2010, 11:53
Re: Player in dm - by JaTochNietDan - 11.10.2010, 23:06
Re: Player in dm - by Babul - 11.10.2010, 23:29
Re: Player in dm - by ColdXX - 16.10.2010, 09:26
Re: Player in dm - by DevilG - 16.10.2010, 09:37

Forum Jump:


Users browsing this thread: 3 Guest(s)