Klappt nicjhtz, also da kann immernoch jeder mit fahren
*edit
error herausgefunden xD
*edit
Naja jetzt kann keienr mehr einsteigen guckt:
#define TEAM_GROOVE 7
#define MAX_GROOVE_CARS 8
static gTeam[MAX_PLAYERS];
new groovecar[MAX_GROOVE_CARS];
new groove[TEAM_GROOVE];
groove[0] = AddPlayerClass(0,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groove[1] = AddPlayerClass(105,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groove[2] = AddPlayerClass(106,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groove[3] = AddPlayerClass(269,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groove[4] = AddPlayerClass(270,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groove[5] = AddPlayerClass(271,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groove[6] = AddPlayerClass(107,2495.2112,-1686.3411,13.5137,357.7042,0,0,0,0,0,0); // Groove Street
groovecar[0] = AddStaticVehicleEx(522,2506.5122,-1686.4038,13.1253,49.6522,86,86, -1); // Groove NRG
groovecar[1] = AddStaticVehicleEx(522,2508.3640,-1685.2032,13.1323,47.0426,86,86, -1); // Groove NRG2
groovecar[2] = AddStaticVehicleEx(560,2481.9014,-1691.7297,13.2236,353.8874,86,86, -1); // Groove Sultan
groovecar[3] = AddStaticVehicleEx(560,2473.2234,-1691.5299,13.2193,359.8142,86,86, -1); // Groove Sultan2
groovecar[4] = AddStaticVehicleEx(404,2516.6204,-1672.4346,13.6803,60.9101,86,86, -1); // groove lahm
groovecar[5] = AddStaticVehicleEx(487,2528.9875,-1677.4238,20.1069,90.3778,86,86, -1); // Groove Heli
groovecar[6] = AddStaticVehicleEx(482,2501.4851,-1655.4745,13.5790,63.1364,86,86, -1); // Groove Burrito
groovecar[7] = AddStaticVehicleEx(482,2498.3994,-1683.1202,13.4969,283.7805,86,86, -1); // Groove Burrito2
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
for(new c=0;c<MAX_GROOVE_CARS;c++)
if(vehicleid == groovecar[code=c])
{
if(gTeam[playerid] != TEAM_GROOVE)
{
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
SendClientMessage(playerid,COLOR_GREY,"Du bist kein GrooveGang Mitglied!");
return 1;
}
}
return 1;
}