mach besser so
oben
forward IsALcn(playerid);
danach unter public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
das da public IsALcn(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member==5)
{
return 1;
}
if(leader==5)
{
return 1;
}
}
return 0;
}
und dann in i-wo
if(newcar == 238 || newcar == 239 || newcar == 240 || newcar == 241 || newcar == 180 || newcar == 181 || newcar == 182 || newcar == 183 || newcar == 184 || newcar == 185 || newcar == 186 || newcar == 187)
{
if(TakingLesson[playerid] == 1) { }
else if(!IsALcn(playerid))
{
SendClientMessage(playerid,COLOR_LIGHTBLUE," Du bist kein Mitglied von La Cosa Nostra");
RemovePlayerFromVehicle(playerid);
}
}
ah ja die LCn kannst du ändern auf deine