Extraterrestre

BATER CARTAO

Jul 10th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. if(strcmp(cmd, "/batercartao", true) == 0)
  2. {
  3.  
  4. if(IsPlayerConnected(playerid))
  5. {
  6.  
  7. if(BCGov(playerid))
  8. {
  9.  
  10. if(PlayerToPoint(2, playerid,251.2632,64.8443,1003.6406))
  11. {
  12.  
  13. if(BCEmp[playerid]==0)
  14. {
  15.  
  16. BCEmp[playerid] = 1;
  17. if (pInfo[playerid][pProfissao] == 1)
  18. {
  19.  
  20. if(pInfo[playerid][pSexo] ==1)
  21. {
  22.  
  23. skincop[playerid] = GetPlayerSkin(playerid);
  24. SetPlayerSkin(playerid, 300);
  25. pInfo[playerid][pSkinM] = 300;
  26. skincop[playerid] = 1;
  27. }
  28. if(pInfo[playerid][pSexo] ==2)
  29. {
  30.  
  31. skincop[playerid] = GetPlayerSkin(playerid);
  32. SetPlayerSkin(playerid, 306);
  33. pInfo[playerid][pSkinF] = 306;
  34. skincop[playerid] = 1;
  35. }
  36. }
  37. SendClientMessage(playerid, -1, "Você bateu o cartão , agora pode Trabalhar !");
  38. }
  39. else {
  40. BCEmp[playerid] = 0;
  41. SetPlayerColor(playerid,COLOR_WHITE);
  42. if(pInfo[playerid][pSexo] ==1)
  43. {
  44.  
  45. SetPlayerSkin(playerid, skincop[playerid]);
  46. pInfo[playerid][pSkinM] = skincop[playerid];
  47. skincop[playerid] = 0;
  48. }
  49. if(pInfo[playerid][pSexo] == 2)
  50. {
  51.  
  52. SetPlayerSkin(playerid, skincop[playerid]);
  53. pInfo[playerid][pSkinF] = skincop[playerid];
  54. skincop[playerid] = 0;
  55. }
  56. SendClientMessage(playerid, COLOR_LIGHTRED, "Você retirou a sua farda.");
  57. }
  58. }
  59. else {
  60. SendClientMessage(playerid, COLOR_GRAD2, "Você não está no local aonde bate o cartão !");
  61. return 1;
  62. }
  63. }
  64. }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment