ehm nutzt du standart gf ?
oder hast du was geändert an dem enum pInfo ?
btw wenn es gf ist kannst du diese zeilen
public IsATaxi(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member==10)
{
return 1;
}
else if(leader==10)
{
return 1;
}
}
return 0;
}
weglassen.
Ich hab es so und es geht :
unter public OnPlayerStateChange
if(IsACopCar(newcar))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1) { }
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_YELLOW2, "Du bist kein Cop!");
}
} änderste dann halt .
irgendwo im script das :
public IsAFbiCar(carid)
{
for(new i = 0; i < sizeof(FBICar); i++)
{
if(carid == FBICar[i])
{
return 1;
}
}
return 0;
}
dann das oben :
forward IsACopCar(carid);
new COPCar[14];
und bei OnGameModeInit das :
COPCar[0] = AddStaticVehicle(596,1574.1584,-1710.6509,5.6115,0.4154,0,1); // copcar1
COPCar[1] =AddStaticVehicle(596,1570.4377,-1710.6825,5.6131,0.5105,0,1); // copcar2
COPCar[2] =AddStaticVehicle(596,1559.3243,-1710.7814,5.6131,0.5105,0,1); // copcar3
COPCar[3] =AddStaticVehicle(596,1578.3827,-1710.6116,5.6131,0.5105,0,1); // copcar4
COPCar[4] =AddStaticVehicle(596,1583.2097,-1710.5687,5.6131,0.5105,0,1); // copcar5
COPCar[5] =AddStaticVehicle(596,1587.3921,-1710.5316,5.6131,0.5105,0,1); // copcar6
COPCar[6] =AddStaticVehicle(596,1591.5092,-1710.4950,5.6131,0.5105,0,1); // copcar7
COPCar[7] =AddStaticVehicle(596,1595.4041,-1710.4602,5.6131,0.5105,0,1); // copcar8
COPCar[8] =AddStaticVehicle(596,1601.3982,-1703.9902,5.6115,89.3032,0,1); // copcar9
COPCar[9] =AddStaticVehicle(596,1601.4447,-1700.1577,5.6115,89.3032,0,1); // copcar10
COPCar[10] =AddStaticVehicle(596,1601.4974,-1695.8269,5.6116,89.3032,0,1); // copcar11
COPCar[11] =AddStaticVehicle(596,1601.5394,-1692.3743,5.6116,89.3032,0,1); // copcar12
COPCar[12] =AddStaticVehicle(596,1601.5939,-1687.9065,5.6116,89.3032,0,1); // copcar13
COPCar[13] =AddStaticVehicle(596,1601.6371,-1684.3641,5.6116,89.3032,0,1); // copcar14
und so klappts bei mir , ist normaler gf
MfG
Timsen