SA-MP Forums Archive
Help With Move 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: Help With Move Checkpoints (/showthread.php?tid=485078)



Help With Move Checkpoints - moustafa0550 - 02.01.2014

i Want Move Checkpoints SF police HQ To LV police HQ
see all this to move checkpoints
Quote:

//Checkpoint defines
#define CP_SFPDEnt 0
#define CP_SFPDExit 1

Quote:

//Variables
new Float:checkCoords[MAX_POINTS][4] = {
{-1623.6704,710.2758,-1595.5138,726.3750}, //SFPDEnt
{233.7716,107.9433,259.8581,122.0880}, //SFPDExit

Quote:

new Float:checkpoints[MAX_POINTS][4] = {
{-1605.5288,712.4097,13.8714,3.0}, //SFPDEnt
{246.4093,109.0884,1003.2188,3.0}, //SFPDExit

Quote:

new checkpointType[MAX_POINTS] = {
CP_SFPDEnt,
CP_SFPDExit,

Quote:

public OnPlayerEnterCheckpoint(playerid)
{
if(getCheckpointType(playerid) == CP_SFPDEnt)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
return 1;
}
SetPlayerInterior(playerid,10);
SetPlayerPos(playerid,246.8460,114.5714,1003.218 ;
SetPlayerFacingAngle(playerid,359.8049);
SetCameraBehindPlayer(playerid);
return 1;
}

if(getCheckpointType(playerid) == CP_SFPDExit)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
return 1;
}
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,-1604.8246,718.6995,11.8512);
SetPlayerFacingAngle(playerid,7.1270);
SetCameraBehindPlayer(playerid);
return 1;
}

see photo i want change to lv