Hey Com,
Ich ahbe heute mal was gebastelt allerdings werde ich als "Nicht" Owner nicht rausgeworfen?
Function OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new Namei[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid,Namei,sizeof(Namei));
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(vehicleid == tutorialcar[i])
{
if(!strcmp(Namei,CarOwners[vehicleid],true, 128)) { }
else
{
format(string,sizeof(string),"Mieter: %s",CarOwners[vehicleid]);
SendClientMessage(playerid,WHITE,string);
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
Ich danke
Nico