Advertisement
Guest User

Untitled

a guest
Oct 15th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. stock UpdateMarkerForPlayer(playerid)
  2. {
  3. if (playerid != INVALID_PLAYER_ID)
  4. {
  5. if (IsPlayerConnected(playerid))
  6. {
  7. for (new i = 0; i < MAX_PLAYERS; i ++)
  8. {
  9. if (IsPlayerConnected(i))
  10. {
  11. if (adminon[i]) continue;
  12.  
  13. SetPlayerMarkerForPlayer(playerid, i, GetMarkerColor(playerid, i));
  14. }
  15. }
  16. }
  17. }
  18.  
  19. return 0;
  20. }
  21.  
  22. stock UpdateMarkerForOther(playerid)
  23. {
  24. if (playerid != INVALID_PLAYER_ID)
  25. {
  26. if (IsPlayerConnected(playerid))
  27. {
  28. for (new i = 0; i < MAX_PLAYERS; i ++)
  29. {
  30. if (IsPlayerConnected(i))
  31. {
  32. if (adminon[playerid]) continue;
  33.  
  34. SetPlayerMarkerForPlayer(i, playerid, GetMarkerColor(i, playerid));
  35. }
  36. }
  37. }
  38.  
  39. return 1;
  40. }
  41.  
  42. return 0;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement