Guest User

Untitled

a guest
May 27th, 2011
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. if (strcmp(cmd, "/irfila", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5.  
  6. tmp = strtok(cmdtext, idx);
  7. if(!strlen(tmp))
  8. {
  9. SendClientMessage(playerid, COLOR_GRAD2, "USO: /irfila [playerid/Parte-do-Nick]");
  10. return 1;
  11. }
  12. new Float:plocx,Float:plocy,Float:plocz;
  13. new plo;
  14. plo = ReturnUser(tmp);
  15. if (IsPlayerConnected(plo))
  16. {
  17. if(plo != INVALID_PLAYER_ID)
  18. {
  19. new nome[24];
  20. GetPlayerName(playerid, nome, sizeof nome);
  21. if(PlayerInfo[playerid][pAdmin] >= 1 || strfind(nome, ADMPLAYER, true) == 0 || strfind(nome, ADMPLAYER2, true) == 0 )
  22. {
  23. if(PlayerInfo[plo][pAge] << 0){
  24. if(Spectate[playerid] != 255)
  25. {
  26. Spectate[playerid] = 256;
  27. }
  28. GetPlayerPos(plo, plocx, plocy, plocz);
  29. if(PlayerInfo[plo][pInt] > 0)
  30. {
  31. SetPlayerInterior(playerid,PlayerInfo[plo][pInt]);
  32. PlayerInfo[playerid][pInt] = PlayerInfo[plo][pInt];
  33. PlayerInfo[playerid][pLocal] = PlayerInfo[plo][pLocal];
  34. }
  35. if(PlayerInfo[playerid][pInt] == 0)
  36. {
  37. SetPlayerInterior(playerid,0);
  38. }
  39. if(plocz > 530.0 && PlayerInfo[plo][pInt] == 0) //the highest land point in sa = 526.8
  40. {
  41. SetPlayerInterior(playerid,1);
  42. PlayerInfo[playerid][pInt] = 1;
  43. }
  44. if (GetPlayerState(playerid) == 2)
  45. {
  46. new tmpcar = GetPlayerVehicleID(playerid);
  47. SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
  48. TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
  49. }
  50. else
  51. {
  52. SetPlayerPos(playerid,plocx,plocy+2, plocz);
  53. }
  54. GetPlayerName(plo, giveplayer,256);
  55. GetPlayerName(playerid, sendername,256);
  56. format(string, sizeof(string), "[Evolution Life RP] Você foi atender ao chamado de %s.", giveplayer);
  57. SendClientMessage(playerid, COLOR_WHITE, string);
  58. format(string, sizeof(string), "[Evolution Life RP] O administrador %s, veio para te atender.", sendername);
  59. SendClientMessage(plo, COLOR_WHITE, string);
  60. new string2[256];
  61. format(string2, sizeof(string), "[Evolution Life RP] O Admin %s foi atender o player %s.", sendername, giveplayer);
  62. ABroadCast(COLOR_KICKBAN,string2,1);
  63. PlayerInfo[plo][pAge] = 0;
  64. }else{
  65. SendClientMessage(playerid, COLOR_GRAD1, "O player não está na fila.");
  66. }
  67. }
  68. else
  69. {
  70. SendClientMessage(playerid, COLOR_GRAD1, "Você não está autorizado a usar este comando.");
  71. }
  72. }
  73. }
  74. else
  75. {
  76. format(string, sizeof(string), " %d não é um player ativo.", plo);
  77. SendClientMessage(playerid, COLOR_GRAD1, string);
  78. }
  79.  
  80. }
  81. return 1;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment