Interior not working help
#1

Hi I have made a int that works to go in but then I cant leave I have went over the script time and time again and I dont know what to do

new pcompany;//Packing company interior

pcompany= CreatePickup(1272,1,2142.5378,-2294.0305,20.6760);

if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2142.5195,-2294.0950,20.6760))
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, 377.0370,-178.4577,1000.632;
return 1;
}
if (strcmp("/exit", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,377.0370,-178.4577,1000.632)
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 2142.5195,-2294.0950,20.6760);
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)