Advertisement
Guest User

Untitled

a guest
Apr 27th, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <a_samp>
  2. #include <zcmd>
  3. #include <sscanf2>
  4. #include <foreach>
  5.  
  6. new pTeam[MAX_PLAYERS];
  7. #define team_policija 1
  8. #define team_civili 2
  9.  
  10. #define SCM SendClientMessage
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print(" Team System by R3DM4N");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23.  
  24. CMD:dodajutim(playerid, params[])
  25. {
  26. if(IsPlayerAdmin(playerid))
  27. {
  28. new id, tim;
  29. if(sscanf(params,"ud", id, tim)) SCM(playerid, -1, "KORISTI: /dodajutim <id> <tim>");
  30.  
  31. pTeam[id] = tim;
  32. }
  33. else SCM(playerid, -1, "NISI ADMIN");
  34. return 1;
  35. }
  36.  
  37. CMD:mojtim(playerid, params[])
  38. {
  39. if(pTeam[playerid] == team_policija)
  40. {
  41. SCM(playerid, -1, "POLICAJAC SI");
  42. return 1;
  43. }
  44. if(pTeam[playerid] == team_civili)
  45. {
  46. SCM(playerid, -1, "CIVIL SI");
  47. return 1;
  48. }
  49. return 1;
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement