script /enter
#1

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
Reply
#2

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
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)