Enter house - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Enter house (
/showthread.php?tid=596774)
Enter house -
iiMo - 22.12.2015
Hey,
Can someone tell me how that if you go trough a checkpoint ( the thing that looks like this ! ) that you enter an interior/house?
Please help!
Re: Enter house -
saffierr - 22.12.2015
To make your checkpoint respond when entering, you should script under the "OnPlayerEnterCheckpoint" callback.
Simple example:
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerInterior(playerid, 3);
return 1;
}
I don't know if you wanted something like this..
Re: Enter house -
iiMo - 22.12.2015
But does that set it to all checkpoint, or a certain one. Because I need that to be in a certain one.
Also, could you tell me how I put text above it ?
also, I want it to TP to a certain place, so it works using coordinates.