HELP: /enter help
#1

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 5) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 3473.1086, -1455.0482, 14.5610))
SetPlayerPos(playerid, 1267.663208, -781.323242, 1091.906250);
SetPlayerInterior(playerid, 5);
return 1;
}
if (strcmp("/leave", cmdtext, true, 5) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1267.663208, -781.323242, 1091.906250))
SetPlayerPos(playerid, 3473.1086, -1455.0482, 14.5610);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}

Thats the script but when i do /leave i spawn about 500feet in the air above madd dogs mansion in ls, does anyone know how to fix this please?
Reply
#2

Bump! I really need help!


Please...
Reply
#3

your co-rds are wrong for the X,Y,Z i had this problem i just redid the co-rds it should help
Reply
#4

thx for ur help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)