public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(vehicleid > maxvehicles || vehicleid < 0) { } if(vehicleDB[vehicleid][locked] && !playerDB[playerid][bypass]) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); if(strcmp(name,vehicleDB[vehicleid][owner_name],true)) { Stop(playerid); ApplyAnimation(playerid, "PED", "CAR_doorlocked_LHS", 4.000000, 0, 0, 0, 0, -1); new msg[128]; format(msg,sizeof(msg),"This car locked. Owner is %s",vehicleDB[vehicleid][owner_name]); SendClientMessage(playerid,RED,msg); return 1; } SendClientMessage(playerid,COLOR,"Thats yours car"); playerDB[playerid][rbool][0]=true; } return 1; } |
OnVehicleStreamIn