[REQ] How to delete entry animation to shop?
#1

Hey guys,
I have a problem, When the player enters(Or Exit) checkpoint the animation is displayed, I want it to be deleted.


Part of the code Checkpoint:
=============================

//Checkpoint defines
#define CP_SFPDEnt 0
#define CP_SFPDExit 1
#define CP_DropOff 2
#define CP_BankEnt 3

=============================

new Float:checkCoords[MAX_POINTS][4] = {
{-1623.6704,710.2758,-1595.5138,726.3750}, //SFPDEnt
{233.7716,107.9433,259.8581,122.0880}, //SFPDExit
{-1628.7830,672.2675,-1586.4739,691.8566}, //DropOff
{-1527.6946,868.8881,-1492.1344,955.5516}, //BankEnt

=============================

new Float:checkpoints[MAX_POINTS][4] = {
{-1605.5288,712.4097,13.8714,3.0}, //SFPDEnt
{246.4093,109.0884,1003.2188,3.0}, //SFPDExit
{-1606.3319,673.9650,-5.2422,3.0}, //DropOff
{-1493.4175,920.0615,7.1875,3.0}, //BankEnt

=============================

new checkpointType[MAX_POINTS] = {
CP_SFPDEnt,
CP_SFPDExit,
CP_DropOff,
CP_BankEnt,
Reply
#2

If you want animations to be deleted then look for SetPlayerSpecialAction or ApplyAnimation.

* Codes you provided above are for checkpoints not related to action/anim.
Reply
#3

It would be under OnPlayerEnterCheckpoint,
Reply
#4

TNX.
I remove all public OnPlayerEnterCheckpoint(playerid) ?!!

Code:
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;
}

if(getCheckpointType(playerid) == CP_DropOff)
{
SendClientMessage(playerid,COLOR_WHITE,"This is where Law Enforcement Officers drop criminals off to prison.");
return 1;
}

if(getCheckpointType(playerid) == CP_BankEnt)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
return 1;
}
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,2310.9771,-14.8475,26.7422);
SetPlayerFacingAngle(playerid,271.5594);
SetCameraBehindPlayer(playerid);
return 1;
}
Reply
#5

This checkpoint :
Reply
#6

Do you mean this?
PHP код:
DisableInteriorEnterExits(); 
It comes under the OnGameModeInit callback. Here's the wiki page: https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
Reply
#7

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
Do you mean this?
PHP код:
DisableInteriorEnterExits(); 
It comes under the OnGameModeInit callback. Here's the wiki page: https://sampwiki.blast.hk/wiki/DisableInteriorEnterExits
The checkpoint removed !!!
Reply
#8

Quote:
Originally Posted by MRM
Посмотреть сообщение
-
Oh, I understand the question now. I don't think you can disable the animation.
Reply
#9

Servers that are fast entering and fast exiting the stores.
Reply
#10

Quote:
Originally Posted by MRM
Посмотреть сообщение
Servers that are fast entering and fast exiting the stores.
They don't use the default GTA checkpoints. They create their own checkpoints.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)