How to...?
#3

Quote:
Originally Posted by TTJJ
Hi there Rubennnnn,

If I understand you correctly, you basically want a checkpoint for all players on the oposite team to appear when someone gets onto a tractor.

Simple way to do this:

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	new veh = GetVehicleModel(vehicleid);
	if(veh == 531)
	{
		for(new i=0; i<MAX_PLAYERS; i++)
  	{
    	if(IsPlayerConnected(i))
    	{
   	 		if(TEAM_VARIABLE[i] != TEAM_VARIABLE[playerid])
      	{
        	 new Float:X, Float:Y, Float:Z;
        	 GetPlayerPos(playerid,X,Y,Z);
        	 SetPlayerCheckpoint(i,X,Y,Z);
				}
			}
		}
	}
	return 1;
}
Thats just something I quickly put together, so forgive me if there are any errors, give it a try see what happens.

Cheers,

TJ
C:\Users\Ruben\Desktop\GTA SA MP server\gamemodes\farmer.pwn(161) : error 029: invalid expression, assumed zero
C:\Users\Ruben\Desktop\GTA SA MP server\gamemodes\farmer.pwn(161) : error 029: invalid expression, assumed zero
C:\Users\Ruben\Desktop\GTA SA MP server\gamemodes\farmer.pwn(161) : warning 215: expression has no effect
C:\Users\Ruben\Desktop\GTA SA MP server\gamemodes\farmer.pwn(161) : error 001: expected token: ";", but found "]"
C:\Users\Ruben\Desktop\GTA SA MP server\gamemodes\farmer.pwn(161) : fatal error 107: too many error messages on one line

it has to do with if(TEAM_FARMER[i] != TEAM_ATTACKER[playerid])
Reply


Messages In This Thread
How to...? - by Rubennnnn - 08.02.2010, 16:53
Re: How to...? - by TTJJ - 08.02.2010, 17:04
Re: How to...? - by Rubennnnn - 08.02.2010, 17:09
Re: How to...? - by TTJJ - 08.02.2010, 17:14
Re: How to...? - by Rubennnnn - 09.02.2010, 13:50
Re: How to...? - by Rubennnnn - 10.02.2010, 14:11
Re: How to...? - by XeoN_13 - 10.02.2010, 14:23
Re: How to...? - by TTJJ - 10.02.2010, 14:33
Re: How to...? - by Rubennnnn - 10.02.2010, 14:38

Forum Jump:


Users browsing this thread: 2 Guest(s)