02.11.2015, 17:03
why i dont get message when i press + and car is locked ( player car )..
Код:
} if(PRESSED(KEY_SUBMISSION)) { new vehicleid = GetPlayerVehicleID(playerid), String[125]; if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) { if(GetVehicleModel(vehicleid) == 525) { new Float:aPos[3]; for(new v = 0; v < MAX_VEHICLES; v++) { if(GetVehicleModel(v) < 400 || v == vehicleid) continue; GetVehiclePos(v, aPos[0], aPos[1], aPos[2]); if(IsPlayerInRangeOfPoint(playerid, 10.0, aPos[0], aPos[1], aPos[2])) { AttachTrailerToVehicle(v, vehicleid); } if(vehicleDB[vehicleid][vLocked]) { if(strcmp(GetPlayerNameEx(playerid), vehicleDB[vehicleid][vOwner], true)) { format(String, sizeof(String),"Its %s player car. You need bring it to base",vehicleDB[vehicleid][vOwner]); SendClientMessage(playerid, -1, String); return 0;