08.02.2010, 17:04
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:
Thats just something I quickly put together, so forgive me if there are any errors, give it a try see what happens.
Cheers,
TJ
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;
}
Cheers,
TJ

