Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:bandana(playerid, params[])
- {
- new gangcolor, string[128];
- if(PlayerInfo[playerid][pGang] == 255) return SendClientMessageEx(playerid, COLOR_WHITE, "Your not in a gang.");
- if(FamilyInfo[PlayerInfo[playerid][pGang]][FamilyBandana] == 0) return SendClientMessageEx(playerid, COLOR_GRAD1, "Your gang does not have a bandana set.");
- gangcolor = FamilyInfo[PlayerInfo[playerid][pGang]][FamilyBandana];
- if(PlayerInfo[playerid][pBandana] != 1)
- {
- ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
- SetPlayerColor(playerid, gangcolor);
- PlayerInfo[playerid][pBandana] = 1;
- format(string, sizeof(string), "* %s grabs the bandana from his pocket, tightens it in his forehead.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "You have shown your bandana to other gang members.");
- }
- else
- {
- SetPlayerColor(playerid, TEAM_HIT_COLOR);
- PlayerInfo[playerid][pBandana] = 0;
- format(string, sizeof(string), "* %s grabs the bandana from forehead, putting it up back to his pocket.", GetPlayerNameEx(playerid));
- ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
- SendClientMessage(playerid, -1, "You have hidden your bandana to other gang members.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement