Making it so when someone does /dm1 they cant teleport out - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Making it so when someone does /dm1 they cant teleport out (
/showthread.php?tid=89514)
Making it so when someone does /dm1 they cant teleport out -
aspire5630 - 02.08.2009
Ok basicly i have a dm1 command
and i need to make it so when they teleport to dm1
they cant teleport out
This is what i have...
Код:
new AtDm[MAX_PLAYERS]; // Variable
AtDm[playerid] = 0; // I put this on Connect and Disconnect
AtDm[playerid] = 1; // I put this on the DM command
// i stick this on all the other commands, So they cant teleprot to them :S
if (AtDm[playerid] == 1;
{
SendClientMessage(playerid, Color, " You cannot Teleport out :O ");
return 1;
}
It doesent work :S
Re: Making it so when someone does /dm1 they cant teleport out -
aspire5630 - 02.08.2009
SOLVED