CheckPoints Weird thingy :D
#1

the title says it!

I want a CP to appear in a place but it doesnt

pawn Код:
#define CP_BankExit 4
#define CP_BankMain 5
#define COLOR_ERROR 0xD2691EAA
#define DIALOG_BANK_LIST 6
pawn Код:
new Float:checkCoords[MAX_POINTS][4] = {
//my other CPS
{2304.6948,-17.3057,2312.3196,-13.2586}, //BankExit
{2311.6550,-13.6536,2316.6047,-0.1508}, //BankMain
//my other CPS
};

pawn Код:
new Float:checkpoints[MAX_POINTS][4] = {
//my other CPS
{2305.5889,-16.2092,26.7496,3.0}, //BankExit
{2315.8198,-7.2530,26.7422,3.0}, //BankMain
//my other CPS
};

pawn Код:
new checkpointType[MAX_POINTS] = {
//my other CPS
CP_BankExit,
CP_BankMain,
//my other CPS
};

pawn Код:
if(getCheckpointType(playerid) == CP_BankExit)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
            return 1;
        }
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,-1499.4198,919.6614,7.1875);
        SetPlayerFacingAngle(playerid,89.8244);
        SetCameraBehindPlayer(playerid);
        return 1;
    }
   
    if(getCheckpointType(playerid) == CP_BankMain)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
            return 1;
        }
        ShowPlayerDialog(playerid,DIALOG_BANK_LIST,DIALOG_STYLE_LIST,"Bank Options","Withdraw Money\nDeposit Money\nAccount Information\nTransfer Money","Select","Cancel");
        return 1;
    }
Reply


Messages In This Thread
CheckPoints Weird thingy :D - by CROSS_Hunter - 21.08.2012, 01:48
Re: CheckPoints Weird thingy :D - by Kirollos - 21.08.2012, 01:49
Re: CheckPoints Weird thingy :D - by CROSS_Hunter - 21.08.2012, 01:52
Re: CheckPoints Weird thingy :D - by SuperViper - 21.08.2012, 01:54
Re: CheckPoints Weird thingy :D - by CROSS_Hunter - 21.08.2012, 01:56
Re: CheckPoints Weird thingy :D - by SuperViper - 21.08.2012, 01:58
Respuesta: CheckPoints Weird thingy :D - by HydraX - 21.08.2012, 02:08
Re: CheckPoints Weird thingy :D - by Devilxz97 - 21.08.2012, 05:10
Re: CheckPoints Weird thingy :D - by JaKe Elite - 21.08.2012, 05:43
Re: CheckPoints Weird thingy :D - by CROSS_Hunter - 21.08.2012, 07:22

Forum Jump:


Users browsing this thread: 1 Guest(s)