CANDY-KUSH-GOD

GTAIV Give Online Players God Mod

Jun 21st, 2014
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. void np_networkLoop(void){
  2.     int i;
  3.     uint armor;
  4.     float x,y,z;
  5.     Ped tmp;
  6.     for(i = 0;i <= 16;i++){
  7.         if(!IS_NETWORK_PLAYER_ACTIVE(i)){
  8.             players[i].juggernaut = true;
  9.             players[i].forcefield = false;
  10.             continue;
  11.         }
  12.         if(i == GET_PLAYER_ID()) continue;
  13.         GET_PLAYER_CHAR(i, &tmp);
  14.         if(!DOES_CHAR_EXIST(tmp)) continue;
  15.         if(DOES_CHAR_EXIST(tmp)){
  16.             if(players[i].juggernaut){
  17.                 GET_CHAR_ARMOUR(tmp,&armor);
  18.                 if(armor < 9999999999){
  19.                     GIVE_WEAPON_TO_CHAR(tmp,WEAPON_ARMOUR,1,true);
  20.                     SET_CHAR_INVINCIBLE(tmp,1);
  21.                     SET_PLAYER_INVINCIBLE(tmp,1);
  22.                     if(players[i].forcefield){ //Removes Nukes
  23.                     GET_CHAR_COORDINATES(tmp,&x,&y,&z);
  24.                     ADD_EXPLOSION(x,y,z,EXPLOSION_SHIP_DESTROY,0,false,false,0);
Advertisement
Add Comment
Please, Sign In to add comment