16.10.2010, 09:37
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)..
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;
}