I need to know how to make a /enter command
#7

pawn Code:
CMD:enter(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 1570.9875, -1336.9447,16.4844))
    {
        SetPlayerPos(playerid, 1548.6855,-1364.6135,326.2109);
        GameTextForPlayer(playerid, "Welcome to the star tower!", 3000, 4)
    }
    else
    {
        SendClientMessage(playerid, COLOR, "You are not near an entrance!");
    }
    return 1;
}
EDIT:

Add this to your script aswell if you want a pickup.
pawn Code:
AddStaticPickup(1318, 1, 1570.9875, -1336.9447,16.4844, 0)
Reply


Messages In This Thread
I need to know how to make a /enter command - by SAMPTUTORIALS - 28.08.2011, 13:24
AW: I need to know how to make a /enter command - by Forbidden - 28.08.2011, 13:26
Re: I need to know how to make a /enter command - by SAMPTUTORIALS - 28.08.2011, 13:29
Re: I need to know how to make a /enter command - by Cyanide - 28.08.2011, 13:33
Re: I need to know how to make a /enter command - by SAMPTUTORIALS - 28.08.2011, 13:39
Re: I need to know how to make a /enter command - by Cyanide - 28.08.2011, 13:39
Re: I need to know how to make a /enter command - by VitalRP - 28.08.2011, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)