Check Point Problem
#2

Quote:
Originally Posted by Dusan01
Посмотреть сообщение
hy guys, im creating tut and i have this prob:

Код:
 else if(TutTime[i] == 25)
			    {
			        ClearChatbox(i, 10);
                    //SetPlayerCameraPos( i, 1143.8341, -1039.4705, 81.0823 );
                    //SetPlayerCameraLookAt( i, 1150.5505, -1046.6729, 79.3458 );
			        //SetCameraBehindPlayer(i);
			        //JBC_TogglePlayerControllable(i, 0);
			        //SetPlayerVirtualWorld(i, 0);
		        	//SetPlayerInterior(i, 14);
		        	//PlayerInfo[i][pInt] = 14;
		        	//JBC_SetPlayerPos(i, -1855.568725, 41.263156, 1061.143554);
			        SendClientMessage(i, 0x0080FFFF, "{FFFFFF}Stanite na crveni marker da izadjete iz aviona!");
			        ClearChatbox(i, 2);
			        SetPlayerCheckpoint(i, 2.384830, 33.103397, 1199.849976, 2)
			        if (IsPlayerInCheckpoint(i))
                    {
                    SendClientMessage(i, 0x0080FFFF, "{FFFFFF}TEST!!!");
                    TutTime[i] += 974;
                   }
and this not working:
Код:
 if (IsPlayerInCheckpoint(i))
                    {
                    SendClientMessage(i, 0x0080FFFF, "{FFFFFF}TEST!!!");
                    TutTime[i] += 974;
                   }
			    }
For checkpoints i attended to use IsPlayerInRangeOfPoint. It checks if the player is in the range of that point when he enter's the checkpoint.

So For example

pawn Код:
IsPlayerInRangeOfPoint(playerid, XPOS,YPOS,ZPOS, 7);
So It would look something like this
pawn Код:
if (IsPlayerInRangeOfPoint(playerid, 1222,1111,1333, 7)) //change the coords just random.
                    {
                    SendClientMessage(i, 0x0080FFFF, "{FFFFFF}TEST!!!");
                    TutTime[i] += 974;
                   }
                }[/
Reply


Messages In This Thread
Check Point Problem - by Dusan01 - 29.11.2012, 12:22
Re: Check Point Problem - by jueix - 29.11.2012, 12:24
Re: Check Point Problem - by Dusan01 - 29.11.2012, 12:27
Re: Check Point Problem - by jueix - 29.11.2012, 12:30
Re: Check Point Problem - by Anak - 29.11.2012, 12:38
Re: Check Point Problem - by Dusan01 - 29.11.2012, 12:42
AW: Check Point Problem - by AwokenNeoX - 29.11.2012, 12:59
Re: AW: Check Point Problem - by Dusan01 - 29.11.2012, 13:07
Re: Check Point Problem - by Dusan01 - 29.11.2012, 15:02

Forum Jump:


Users browsing this thread: 1 Guest(s)