Dagllas

SK Protection

Apr 10th, 2022
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. ************ POD NEW
  2.  
  3. new bool:SK[MAX_PLAYERS] = false;
  4.  
  5. ************ OVO STAVI GDJE TI SE SPAWNA LIK - MENI JE POD OnPlayerSpawn ****************
  6.  
  7. SK[playerid] = true;
  8. defer Protekcija(playerid);
  9. TogglePlayerControllable(playerid, 0);
  10. GameTextForPlayer( playerid, "~b~Anti-SK protekcija!...", 3000, 4 );
  11.  
  12. ************** OVO TI JE DOLJE KAO STOCK
  13.  
  14. timer Protekcija[3000](playerid) - ovo u '[]' zagradi je vrijeme koliko je protekcija
  15. {
  16. SK[playerid] = false;
  17. return 1;
  18. }
  19.  
  20. ************* OVO TI JE AKO IMAS FAZON STOCK 'SpawnIgraca'
  21.  
  22. SK[playerid] = true;
  23. defer Protekcija(playerid);
  24. GameTextForPlayer( playerid, "~b~Anti-SK protekcija!...", 3000, 4 );
Advertisement
Add Comment
Please, Sign In to add comment