Quote:
Originally Posted by PotH3Ad
Give this a try, should work...
pawn Код:
if(!strcmp(cmd, "/carlock", true, 8)) { if(GetClosestVehicle(playerid, 5)) { for(new i = 0; i != MAX_PLAYERS; i++) { if(!strcmp(CarSystem[GetClosestVehicle(playerid,5)][Carowner], pName(playerid), true)) { CarLock[GetClosestVehicle(playerid,5)] = 1; SetVehicleParamsForPlayer(GetClosestVehicle(playerid,5),i,0,1); new str[95]; format(str, sizeof(str), "*%s presses a key which locks the doors of the vehicle", pName(playerid)); ProxDetector(30.0,playerid,str,MECHAT,MECHAT,MECHAT,MECHAT,MECHAT); } } } return 1; }
|
Did not work, I can now unlock and lock all of the vehicles. I also tried to remove the "!" but then I could also lock all vehicles.