Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void np_networkLoop(void){
- int i;
- uint armor;
- float x,y,z;
- Ped tmp;
- for(i = 0;i <= 16;i++){
- if(!IS_NETWORK_PLAYER_ACTIVE(i)){
- players[i].juggernaut = true;
- players[i].forcefield = false;
- continue;
- }
- if(i == GET_PLAYER_ID()) continue;
- GET_PLAYER_CHAR(i, &tmp);
- if(!DOES_CHAR_EXIST(tmp)) continue;
- if(DOES_CHAR_EXIST(tmp)){
- if(players[i].juggernaut){
- GET_CHAR_ARMOUR(tmp,&armor);
- if(armor < 9999999999){
- GIVE_WEAPON_TO_CHAR(tmp,WEAPON_ARMOUR,1,true);
- SET_CHAR_INVINCIBLE(tmp,1);
- SET_PLAYER_INVINCIBLE(tmp,1);
- if(players[i].forcefield){ //Removes Nukes
- GET_CHAR_COORDINATES(tmp,&x,&y,&z);
- ADD_EXPLOSION(x,y,z,EXPLOSION_SHIP_DESTROY,0,false,false,0);
Advertisement
Add Comment
Please, Sign In to add comment