02.04.2011, 18:56
Well it sends the message saying that vehicle is owned by...
but it doesnt remove the player from the vehicle, why?
but it doesnt remove the player from the vehicle, why?
pawn Code:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new string[128];
format(string,sizeof(string),"%s",Carowner);
if(strcmp(GetPName(playerid),Carowner) == -1)
{
RemovePlayerFromVehicle(playerid);
SendFMessage(playerid,red,"[Private Car]"lgreen"That vehicle is owned by "lyellow"%s"lgreen"!",Carowner);
}
return 1;
}