SA-MP Forums Archive
script /enter - 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: script /enter (/showthread.php?tid=430648)



script /enter - alexitaly - 14.04.2013

I can not do this script:
if you are in this position: 595.96, -1251.44,18.33 and you type /enter you'll be teleported to this location: 1424.630493, -980.526672, 1639.371460 if you were not in this position: 595.96, -1251.44,18.33
you can not teleport to this: 1424.630493, -980.526672, 1639.371460.

help me please


Re : script /enter - yusei - 14.04.2013

Juste Fllow this Code below ::

PHP код:
if(IsPlayerInRangeOfPoint(playerid1.0595.96, -1251.4418.33)) ////  if you are in this position
{
        
SetPlayerPos(playerid,1424.630493, -980.5266721639.371460); //////// teleported to this location
        
return 1;

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/SetPlayerPos


Re: script /enter - Neil. - 14.04.2013

On a command processor: (Specifically ZCMD)

pawn Код:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 1.0, 595.96, -1251.44, 18.33)) ////  if you are in this position
    {
        SetPlayerPos(playerid,1424.630493, -980.526672, 1639.371460); //////// teleported to this location
        SendClientMessage(playerid, -1, "Welcome");
    }  
    else SendClientMessage(playerid, -1, "You are not in the proper location");
    return 1;
}