hey leute ich habe folgendes neues problem
ich habe versucht frakcars einzufügen
new newcar;
new GrooveCars[9];
forward IsAGrooveCar(carid);
GrooveCars[0] = AddStaticVehicle(522,843.5660,-1379.8986,-0.5015,273.4572,1,2); //
GrooveCars[1] = AddStaticVehicle(560,2487.0256,-1654.0730,13.1075,91.1595,17,1); //
GrooveCars[2] = AddStaticVehicle(562,2473.2397,-1704.3740,13.1847,357.3854,17,1); //
GrooveCars[3] = AddStaticVehicle(562,2473.4243,-1693.0585,13.1732,359.3110,17,1); //
GrooveCars[4] = AddStaticVehicle(411,2517.3496,-1672.2493,13.8024,62.9080,116,1); //
GrooveCars[5] = AddStaticVehicle(415,2505.8025,-1679.7589,13.2324,133.4915,40,1); //
GrooveCars[6] = AddStaticVehicle(471,2466.7256,-1687.9860,12.9965,269.9671,74,91); //
GrooveCars[7] = AddStaticVehicle(522,2525.4419,-1665.4918,14.6843,176.0395,7,79); //
GrooveCars[8] = AddStaticVehicle(487,2528.9216,-1677.9222,20.1057,91.4923,54,29); //
groovezone = GangZoneCreate(2347.863, -1718.401, 2539.837, -1626.875);
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(IsAGrooveCar(newcar))
{
if(pInfo[playerid][gTeam] != Groove || pInfo[playerid][gLeader] != Groove)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREEN, " Du gehörst nicht zur Grove Street ");
}
}
return 1;
}
public IsAGrooveCar(carid)
{
for(new i = 0; i < sizeof(GrooveCars); i++)
{
if(522 == GrooveCars[0] || carid == GrooveCars[1] || carid == GrooveCars[2] || carid == GrooveCars[3] || carid == GrooveCars[4] || carid == GrooveCars[5] || carid == GrooveCars[6] || carid == GrooveCars[7] || carid == GrooveCars[8])
{
return 1;
}
}
return 0;
}
jetzt folgendes problem
egal welche fraktion jeder kann die cars fahren
ich hoffe mir kann jemadn helfen