Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. CMD:bandana(playerid, params[])
  2. {
  3. new gangcolor, string[128];
  4. if(PlayerInfo[playerid][pGang] == 255) return SendClientMessageEx(playerid, COLOR_WHITE, "Your not in a gang.");
  5. if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyBandana] == 0) return SendClientMessageEx(playerid, COLOR_GRAD1, "Your gang does not have a bandana set.");
  6. gangcolor = FamilyInfo[PlayerInfo[playerid][pGang]][FamilyBandana];
  7. if(PlayerInfo[playerid][pBandana] != 1)
  8. {
  9. ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
  10. SetPlayerColor(playerid, gangcolor);
  11. PlayerInfo[playerid][pBandana] = 1;
  12. format(string, sizeof(string), "* %s grabs the bandana from his pocket, tightens it in his forehead.", GetPlayerNameEx(playerid));
  13. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  14. SendClientMessage(playerid, -1, "You have shown your bandana to other gang members.");
  15. }
  16. else
  17. {
  18. SetPlayerColor(playerid, TEAM_HIT_COLOR);
  19. PlayerInfo[playerid][pBandana] = 0;
  20. format(string, sizeof(string), "* %s grabs the bandana from forehead, putting it up back to his pocket.", GetPlayerNameEx(playerid));
  21. ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
  22. SendClientMessage(playerid, -1, "You have hidden your bandana to other gang members.");
  23. }
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement