need a tip plz :D
#9

Put this Up
Код:
new czek;
Hmmz ..... ,

Check this
Код:
public OnPlayerEnterCheckpoint(playerid) {

	if(czek == 0)
	{
		SendClientMessageToAll(COLOR_RACE, "*** %s (what you want to Type)",Player(playerid));
		czek = 1;
		
		for(new i; i<MAX_PLAYERS; i++) DisablePlayerCheckpoint(i);
	}
  return 1;
}
on PlayerSpawn
Код:
DisablePlayerCheckpoint(playerid);
This put on under Commands Example : /home <


Код:
for(new i; i<MAX_PLAYERS; i++){
			if(IsPlayerInArea(playerid, -2699.4290, 1241.5670, -2661.3909, 1311.5662) && IsPlayerInArea(i, -2699.4290, 1241.5670, -2661.3909, 1311.5662)){
    		DisablePlayerCheckpoint(i);
				SetPlayerCheckpoint(i, -2682.5291,2176.9382,54.9985, 25);
				czek = 0;
			}
		}
	}
put this anywhere : P

Код:
IsPlayerInArea(playerID, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
	new Float:X, Float:Y, Float:Z;

	GetPlayerPos(playerID, X, Y, Z);
	if(X >= minx && X <= maxx && Y >= miny && Y <= maxy) {
		return 1;
	}
	return 0;
}
(didnt check lol )
Reply


Messages In This Thread
need a tip plz :D - by [XST]O_x - 03.09.2009, 07:47
Re: need a tip plz :D - by Calgon - 03.09.2009, 07:51
Re: need a tip plz :D - by [XST]O_x - 03.09.2009, 07:54
Re: need a tip plz :D - by [XST]O_x - 03.09.2009, 08:47
Re: need a tip plz :D - by Imran.Abbas - 03.09.2009, 08:49
Re: need a tip plz :D - by [XST]O_x - 03.09.2009, 08:54
Re: need a tip plz :D - by [XST]O_x - 03.09.2009, 09:10
Re: need a tip plz :D - by CJ101 - 03.09.2009, 09:37
Re: need a tip plz :D - by Imran.Abbas - 03.09.2009, 09:41
Re: need a tip plz :D - by [XST]O_x - 03.09.2009, 09:44

Forum Jump:


Users browsing this thread: 2 Guest(s)