Advertisement
garfield

[COD]: Pequeno sistema de blindagem

Jan 8th, 2013
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. #include a_samp
  2.  
  3.  
  4. #define BlindarCarro(%0,%1)    Blindado{%0} = %1
  5.  
  6. new
  7.     bool: Blindado [ MAX_PLAYERS  char]
  8. ;
  9.  
  10.  
  11.  
  12.  
  13. public OnPlayerConnect(playerid){
  14.  
  15.     return BlindarCarro(playerid, !true), !false;
  16. }
  17.  
  18.  
  19.  
  20. public OnVehicleDamageStatusUpdate(vehicleid, playerid){
  21.  
  22.  
  23.     if(Blindado{playerid}){
  24.    
  25.         SetVehicleHealth(vehicleid, 100);
  26.        
  27.         RepairVehicle(vehicleid);
  28.     }
  29.     return true;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement