Checkpoints. - 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: Checkpoints. (
/showthread.php?tid=373383)
Checkpoints. -
_Khaled_ - 30.08.2012
I have two questions, related to each other lol..
First, how to remove these yellow arrows that lead into interiors?
Second, I need to know the basics of creating that redcheckpoint please.
Re: Checkpoints. -
Cena44 - 30.08.2012
pawn Код:
public OnGameModeInit()
{
DisableInteriorEnterExits();
return 1;
}
for the Checkpoints:
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
Re: Checkpoints. -
_Khaled_ - 30.08.2012
Okay so it's playerid, x,y,z,size! What about interior?
EDIT
pawn Код:
new AmmuCheck1;
OnPlayerSpawn(playerid)
{
AmmuCheck1 = SetPlayerCheckpoint(playerid, 1982.6150, -220.6680, -0.2432, 3.0);
return 1;
}
Код:
D:\SAMP\Server\SACNC [0.3e R2]\gamemodes\SACNC.pwn(1054) : warning 204: symbol is assigned a value that is never used: "AmmuCheck1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Re: Checkpoints. -
Cena44 - 30.08.2012
as far as I know checkpoints appear in all interiors/VW's
Re: Checkpoints. -
_Khaled_ - 30.08.2012
How to add checkpoint into interior? Where should I add the interior?
Re: Checkpoints. -
Jack.7331 - 30.08.2012
Into an interior? You need to do a check if a player is in said interior or virtual world ( if(GetPlayerInterior(playerid) == interior)) and then set the player's checkpoint.