Mattaffix

Untitled

Nov 29th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
  2. {
  3. for(new v = 1, k = GetVehiclePoolSize(); v <= k; v++)
  4. {
  5. if(bVehicleInfo[v] > 1)
  6. {
  7. bVehicleInfo[v] --;
  8. }
  9. if(bVehicleInfo[v] == 1)
  10. {
  11. new Float:x, Float:y, Float:z;
  12. GetVehiclePos(v, x, y, z);
  13.  
  14. CreateExplosion(x, y, z, 6, 10.0);
  15. SetVehicleToRespawn(v);
  16. bVehicleInfo[v] = 0;
  17. if(IsPlayerInVehicle(i, v))
  18. {
  19. SetPlayerHealth(i, 0);
  20. }
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment