Advertisement
Guest User

Cinto

a guest
Oct 18th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. //====================================[Cinto=========================================
  2. if(!strcmp(cmdtext, "/cinto", true))
  3. {
  4. if(IsPlayerInAnyVehicle(playerid))
  5. {
  6. if(CintoPlayer[playerid] == 0)
  7. {
  8. CintoPlayer[playerid] = 1;
  9. GetPlayerName(playerid, sendername, sizeof(sendername));
  10. SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Parabéns Você está de Cinto, Agora Está Protegido (/tirarcinto)");
  11. format(string, sizeof(string), "%s coloca o cinto de segurança.", sendername);
  12. ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  13. }
  14. else
  15. {
  16. SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Você já está de cinto.");
  17. }
  18. }
  19. else
  20. {
  21. SendClientMessage(playerid, COLOR_WHITE,"Você não está em um Veiculo");
  22. }
  23. return 1;
  24. }
  25. //===================================================================
  26. if(!strcmp(cmdtext, "/tirarcinto", true))
  27. {
  28. if(IsPlayerInAnyVehicle(playerid))
  29. {
  30. if(CintoPlayer[playerid] == 1)
  31. {
  32. CintoPlayer[playerid] = 0;
  33. GetPlayerName(playerid, sendername, sizeof(sendername));
  34. SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Cuidado Você Esta Sem Cinto, Pode Morrer (/cinto)");
  35. format(string, sizeof(string), "%s retira o cinto de segurança.", sendername);
  36. ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  37. }
  38. else
  39. {
  40. SendClientMessage(playerid, COLOR_YELLOW,"[BHF] Você já está sem cinto.");
  41. }
  42. }
  43. else
  44. {
  45. SendClientMessage(playerid, COLOR_YELLOW,"[BSG] Você não está em um veículo.");
  46. }
  47. return 1;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement