daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest May 16th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. stock gangZoneName(playerid) {
  2.     new nome[24] = "N/A";
  3.         if(IsPlayerInArea(playerid, minx, miny, maxx, maxy)) { //dos ballas
  4.         nome = "Ballas";
  5.         }
  6.         else if(IsPlayerInArea(playerid, minx, miny, maxx, maxy)) { //dos grove
  7.         nome = "Grove Street";
  8.         }
  9.         /// sucessivamente
  10.              
  11.     return nome;
  12. }
  13. stock isValidGang(playerid) {
  14.         if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) return 1; //ballas
  15.         if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) return 1; //vagos
  16.         return 0;
  17. }
  18.  
  19. stock getMember(playerid) {
  20.         new nome[24] = "Invalido";
  21.         if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) return nome = "Ballas";
  22.     if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) return nome = "Vagos";
  23.         return nome;
  24. }
  25. stock InGangzone(playerid) {
  26.     if(IsPlayerInArea(....)) return 1;// gangzone ballas  
  27.     if(IsPlayerInArea(....)) return 1;// gangzone vagos  
  28.     return 0;
  29. }
  30. if(IsValidGang(playerid) && InGangzone(playerid) {
  31.     format(string, sizeof(string), "%s dominou a gangzone dos %s!", getMember(playerid), gangZoneName(playerid));
  32.         SendClientMessage(playerid, -1, string);
  33. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top