28.08.2011, 14:00
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;
}
Add this to your script aswell if you want a pickup.
pawn Code:
AddStaticPickup(1318, 1, 1570.9875, -1336.9447,16.4844, 0)