16.06.2012, 18:48
Top of script
That should work, haven't tested.
Код:
#define team_example 1 new pTeam[MAX_PLAYERS]; new EXAMPLE1;
Код:
EXAMPLE1 = AddStaticVehicleEx(596,1538.6521,-1643.8551,5.6114,0.3763,0,1,100000);
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(IsPlayerInVehicle(playerid, EXAMPLE1) || IsPlayerInVehicle(playerid, EXAMPLE2) || IsPlayerInVehicle(playerid,EXAMPLE)) { SCM(playerid, RED, "you are not part of this group."); RemovePlayerFromVehicle(playerid); } else { if(pTeam[playerid] == team_example) { SCM(playerid, GREEN, "/engine to start the vehicle"); } } return 1; }