SA-MP Forums Archive
Multiple /enter commands for different locations - 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)
+--- Thread: Multiple /enter commands for different locations (/showthread.php?tid=396999)



Multiple /enter commands for different locations - Lz - 02.12.2012

so i want to make a /enter command for many locations, Banks, LSPD, shops etc, But i only want to use the one command.. How would i go about this? So far my OnPlayerCommandText is..

pawn Код:
if(!strcmp("/enter",cmdtext))
{
    if(IsPlayerInRangeOfPoint(playerid, 3.0, -323.44,2675.54,63.67))
    {
    SetPlayerInterior(playerid,6);
    SetPlayerPos(playerid,246.783996,63.900199,1003.640625);
    }
    else(SendClientMessage(playerid, 0xFFFFFFFF, "You are not near any enterable doors!"));
    }
    return 1;
    }



Re: Multiple /enter commands for different locations - Infinity90 - 02.12.2012

https://sampforum.blast.hk/showthread.php?tid=277126


Re: Multiple /enter commands for different locations - Lz - 02.12.2012

Thanks alot