483=if(GetPlayerVehicleID(playerid) == grovefahrzeuge(vehicleid)
486= DIE ERSTE { if(!isPlayerinFrakt(playerid,1)
{
SendClientMessage(playerid,rot,"Dieser Wagen gehört der Grove Street");
RemovePlayerFromVehicle(playerid);
}
und 140= die letze klammer hier if(!isPlayerinFrakt(playerid,1)
{
SendClientMessage(playerid,rot,"Dieser Wagen gehört der Grove Street");
RemovePlayerFromVehicle(playerid);
}
HIER NOCHMAL ALLES ZSM
new grovefahrzeug[12];
grovefahrzeug[0] = AddStaticVehicle(560,2481.6655,-1653.7430,13.0913,89.3862,191,191); // grove3
grovefahrzeug[1] = AddStaticVehicle(560,2499.0454,-1683.0353,13.0892,102.8021,191,191); // grove4
grovefahrzeug[2] = AddStaticVehicle(567,2473.6240,-1692.3252,13.3893,1.5045,191,191); // grove 1
grovefahrzeug[3] = AddStaticVehicle(567,2506.6694,-1694.3275,13.4271,0.4538,191,191); // grove 2
grovefahrzeug[4] = AddStaticVehicle(451,2468.5720,-1671.4988,13.1045,13.1538,191,191); // grove
grovefahrzeug[5] = AddStaticVehicle(451,2468.8464,-1653.5500,13.1084,93.0590,191,191); // grove
grovefahrzeug[6] = AddStaticVehicle(487,2530.3611,-1677.4352,20.1065,242.7744,191,191); // grove
grovefahrzeug[7] = AddStaticVehicle(522,2503.9526,-1693.6013,13.1313,1.9871,191,191); // grove
grovefahrzeug[8] = AddStaticVehicle(522,2516.4688,-1665.9817,13.4588,90.2528,191,191); // grove
grovefahrzeug[9] = AddStaticVehicle(522,2506.0911,-1651.2596,13.2435,128.5980,191,191); // grove
grovefahrzeug[10] = AddStaticVehicle(413,2501.0127,-1654.7416,13.5605,75.2678,191,191); // grove
grovefahrzeug[11] = AddStaticVehicle(560,2510.0095,-1672.1099,13.1169,347.6112,191,0); // grove
//Frakfahrzeuge----------------------------------------------------------------------------------------------------------
public grovefahrzeuge(vehicleid)
{
for(new i =0;i < sizeof(grovefahrzeug); i++)
{
if(vehicleid==grovefahrzeug[i])
{
return 1;
}
return 0;
}
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == grovefahrzeuge(vehicleid)
{
if(!isPlayerinFrakt(playerid,1)
{
SendClientMessage(playerid,rot,"Dieser Wagen gehört der Grove Street");
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
mfg Antimon