[Ajuda] sistema de blindagem
#1

entгo tenho um sistema de blindagem, mais sempre que bato ele so tira 1%, gostaria que ele tira-se mais como defino para o dano no carro ser maior?


Код:
GetVehicleHealth(GetPlayerVehicleID(playerid), Stats);

	if(Stats < 1000){
		if(vBlindagem[vehicleid] > 0){
			vBlindagem[vehicleid]--;
			RepairVehicle(vehicleid);
		}
	}
Reply
#2

PHP код:
vBlindagem[vehicleid]--; 
PHP код:
vBlindagem[vehicleid] = -20
Acredito que seja isso.
Reply
#3

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
PHP код:
vBlindagem[vehicleid] = -20
Acredito que seja isso.
PHP код:
vBlindagem[vehicleid] -= 20
Reply
#4

Obrigado a Todos, funcionou PT obrigado!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)