21.08.2012, 01:48
the title says it!
I want a CP to appear in a place but it doesnt
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;
}