Checkpoint Streamer
#1

Can someone please tell me what I'm doing wrong here, it spawns me at market everytime.

And I put
Код:
printf("%i", GetPlayerVirtualWorld(playerid));
to test and it sends 0 when I enter market checkpoint, 1 for willowfield and 2 for east los santos.

Код:
stock OnPlayerEnterCheckpointEx(playerid, cpID)
{
	for(new cb = 0; cb < 3; cb++) // 0, 1, 2
	{
		if(cpID == checkpoints[cluckin_bell][cb]) // market, willowfield, east ls
		{
			new cbi = checkpoints[cluckin_bell][3];
			cpDisabled[cbi] = 1; // inside checkpoint
			SetPlayerInterior(playerid, 9);
			SetPlayerVirtualWorld(playerid, cb);
			printf("%i", GetPlayerVirtualWorld(playerid));
			SetPlayerPos(playerid, 365.6603, -11.1351, 1001.8516);
			SetPlayerFacingAngle(playerid, 0);
			SetCameraBehindPlayer(playerid);
			SetTimer("cpTimer", 2000, 0);		
		}
		if(cpID == checkpoints[cluckin_bell][3]) // inside cluckin bell
		{
			cpDisabled[cb] = 1;	
			if(GetPlayerVirtualWorld(playerid) == 0) // Market Cluckin' Bell
			{
				SetPlayerPos(playerid, 928.0692, -1352.8972, 13.3438);
				SetPlayerFacingAngle(playerid, 90);
			}
			if(GetPlayerVirtualWorld(playerid) == 1) // Willowfield Cluckin' Bell
			{
				SetPlayerPos(playerid, 2398.5435, -1898.5269, 13.5469);
				SetPlayerFacingAngle(playerid, 0);
			}	
			if(GetPlayerVirtualWorld(playerid) == 2) // East LS Cluckin' Bell
			{
				SetPlayerPos(playerid, 2420.4832, -1509.8545, 24.0000);
				SetPlayerFacingAngle(playerid, 270);
			}
			SetPlayerInterior(playerid, 0);
			SetPlayerVirtualWorld(playerid, 0); // Outside
			SetCameraBehindPlayer(playerid);
			SetTimer("cpTimer", 2000, 0);
		}
	}
	return 1;
}
Reply
#2

Uhh What Are You Doing? o.O
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)