12.05.2012, 23:25
preciso achar a variavel de cada gangue que tem em um gm aqui mais nгo acho preciso dela para disponibilizar um comando sу para a tal gangue
Quote:
#include <a_samp> #include <core> #include <float> #include <zcmd> #pragma tabsize 0 #define COLOR_GREY 0xAFAFAFAA #define ROXO 0x661764FF #define COLOR_DGREEN 0x8FBC8FFF #define COLOR_BLACK 0x000000FF #define COLOR_BLUE 0x2641FEAA #define COLOR_GREEN 0x33AA33AA #define COLOR_RED 0xAA3333AA #define COLOR_YELLOW 0xFFFF00AA #define COLOR_WHITE 0xFFFFFFAA #define INACTIVE_PLAYER_ID 255 #define GIVECASH_DELAY 5000 #define VALOR_INICIAL 1200 #define GetarDado(%0,%1) %1[%0] #define NUMVALUES 4 const Verde = 0x12C41E96; forward Givecashdelaytimer(playerid); forward SendMSG(); forward PayDay(); forward SetPlayerRandomSpawn(playerid); forward SetupPlayerForClassSelection(playerid); forward GameModeExitFunc(); forward SendPlayerFormattedText(playerid, const str[], define); forward public SendAllFormattedText(playerid, const str[], define); //------------------------------------------------------------------------------------------------------ new RandomMSG[][] = { "[SERVER] Adicione nosso ip aos favoritos: 189.1.173.161:7795", "[SERVER] Nгo mate membros do seu time.", "[SERVER] Use /ajuda para ver alguns comandos", "[SERVER] Estб cansado da Deagle? Use /armas", "[SERVER] Utilize /mudar para mudar de time!", "[SERVER] Nгo faзa DB (Drive-BY, Atropelar ou matar alguem de dentro do carro) ou serб punido!", "[SERVER] Se vocк estб num veiculo e a vitima estiver em outro, nгo й drive-by!" }; new RandomColors [] = { 0xEEDD82 //Azul Piscina }; new Text ![]() new iSpawnSet[MAX_PLAYERS]; new pClass[MAX_PLAYERS]; // Stores the player's class new Text:dTextDraw; new Recompensa[MAX_PLAYERS]; new Matou[MAX_PLAYERS]; new Seguidos[MAX_PLAYERS]; new str[256]; new Text3D:recompensa[MAX_PLAYERS]; new Float:gRandomPlayerSpawns[4][3] = { {413.513,2533.530,18.668}, // Base Terroristas {-131.450,1229.313,19.469}, // Base Mercenarios {693.668,1959.560,5.109}, // Base Vingadores {-548.710,2593.98,53.483} // Base Agentes }; new Float:gCopPlayerSpawns[2][3] = { {2297.1064,2452.0115,10.8203}, {2297.0452,2468.6743,10.8203} }; //Round code stolen from mike's Manhunt :P //new gRoundTime = 3600000; // Round time - 1 hour //new gRoundTime = 1200000; // Round time - 20 mins //new gRoundTime = 900000; // Round time - 15 mins //new gRoundTime = 600000; // Round time - 10 mins //new gRoundTime = 300000; // Round time - 5 mins //new gRoundTime = 120000; // Round time - 2 mins //new gRoundTime = 60000; // Round time - 1 min new gActivePlayers[MAX_PLAYERS]; new gLastGaveCash[MAX_PLAYERS]; //------------------------------------------------------------------------------------------------------ main() { print("\n------------------------------------------------"); print(" Rodando Guerra Deserto v0.4"); print(" Codado Por"); print(" Arakuta, com ajuda do forum sa-mp"); print("-------------------------------------------------\n"); } public OnPlayerConnect(playerid) { GameTextForPlayer(playerid,"Seja bem vindo ao Brasil Guerra Deserto",5000,5); SendPlayerFormattedText(playerid, "Seja bem vindo, utilize /ajuda para ver os comandos.", 0); gActivePlayers[playerid]++; gLastGaveCash[playerid] = GetTickCount(); new strings[15]; format(strings, 15, "%d Online",GetOnLinePlayers()); TextDrawSetString(players, strings); TextDrawShowForPlayer(playerid, players); new string[128], Player_Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Player_Name,sizeof(Player_N ame)); format(string,256,"==> %s [Id:%i] Entrou no servidor",Player_Name,playerid); SendClientMessageToAll(ROXO,string); return 1; } public OnPlayerConnect(playerid) { Recompensa[playerid] = 0; Matou[playerid] = 0; Seguidos[playerid] = 0; return 1; } |