Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ______________________________________
- |______FILTERSCRIPT_TK_MINIGAME______|
- |______________BY_F1N4L______________|
- |_______Initialized_16_04_2016_______|
- |_________Updated_18_04_2016_________|
- |_______v_0.3z_v_0.3.7__v.1.3________|
- */
- #include <a_samp>
- #include <streamer>
- #include <foreach>
- #include <zcmd>
- #define MAX_PONTOS 3
- #define SHOW_NICK true
- new
- PickupMode,
- bool:ComPickup[MAX_PLAYERS],
- bool:FoiMG[MAX_PLAYERS],
- bool:IniciouMG,
- Equipe[MAX_PLAYERS],
- Matou[MAX_PLAYERS],
- Morreu[MAX_PLAYERS],
- Capturou[MAX_PLAYERS],
- Contagem_Equipe_1,
- Contagem_Equipe_2,
- Pontos_Equipe_1,
- Pontos_Equipe_2,
- CP_Equipe_1,
- CP_Equipe_2,
- PlayerComDroga
- ;
- new
- TimerAtualizar[MAX_PLAYERS]
- ;
- new
- Text:TDEditor_TD[23],
- PlayerText:TDEditor_PTD[5]
- ;
- new Float:RandomPickupSpawn[8][3] =
- {
- {1272.1404, 2781.9517, 10.8125},
- {1315.6337, 2848.9990, 10.8203},
- {1342.5803, 2780.3416, 10.3074},
- {1300.8009, 2732.1619, 10.8203},
- {1240.8817, 2756.2798, 10.8203},
- {1374.7561, 2827.0725, 10.8203},
- {1397.6188, 2729.2617, 10.8203},
- {1149.3634, 2812.5732, 10.8125}
- };
- new Float:RandomEquipe2Spawn[5][3] =
- {
- {1135.5074, 2799.7400, 10.8203},
- {1143.1603, 2753.5933, 10.8203},
- {1161.8661, 2728.1257, 10.8203},
- {1148.1884, 2848.2947, 10.8203},
- {1165.3192, 2810.1648, 10.8203}
- };
- new Float:RandomEquipe1Spawn[5][3] =
- {
- {1399.3834, 2813.8564, 10.8203},
- {1389.5037, 2784.5581, 10.8203},
- {1391.1814, 2731.0261, 10.8203},
- {1399.7212, 2853.2241, 10.8203},
- {1413.3110, 2788.0364, 10.8203}
- };
- public OnFilterScriptInit()
- {
- TDEditor_TD[0] = TextDrawCreate(247.646987, 1.583337, "_");
- TextDrawLetterSize(TDEditor_TD[0], 0.350588, 2.790001);
- TextDrawTextSize(TDEditor_TD[0], 421.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[0], 1);
- TextDrawColor(TDEditor_TD[0], -1);
- TextDrawUseBox(TDEditor_TD[0], 1);
- TextDrawBoxColor(TDEditor_TD[0], -16777126);
- TextDrawSetShadow(TDEditor_TD[0], 0);
- TextDrawBackgroundColor(TDEditor_TD[0], 0);
- TextDrawFont(TDEditor_TD[0], 1);
- TextDrawSetProportional(TDEditor_TD[0], 1);
- TDEditor_TD[1] = TextDrawCreate(246.235351, 0.416660, "Equipe_1:_0_PONTOS");
- TextDrawLetterSize(TDEditor_TD[1], 0.400000, 1.600000);
- TextDrawAlignment(TDEditor_TD[1], 1);
- TextDrawColor(TDEditor_TD[1], -65281);
- TextDrawBackgroundColor(TDEditor_TD[1], 255);
- TextDrawFont(TDEditor_TD[1], 2);
- TextDrawSetProportional(TDEditor_TD[1], 1);
- TextDrawSetShadow(TDEditor_TD[1], 0);
- TDEditor_TD[2] = TextDrawCreate(246.235351, 13.116674, "Equipe_2:_0_PONTOS");
- TextDrawLetterSize(TDEditor_TD[2], 0.400000, 1.600000);
- TextDrawAlignment(TDEditor_TD[2], 1);
- TextDrawColor(TDEditor_TD[2], -65281);
- TextDrawBackgroundColor(TDEditor_TD[2], 255);
- TextDrawFont(TDEditor_TD[2], 2);
- TextDrawSetProportional(TDEditor_TD[2], 1);
- TextDrawSetShadow(TDEditor_TD[2], 0);
- TDEditor_TD[3] = TextDrawCreate(211.882202, 118.249954, "_");
- TextDrawLetterSize(TDEditor_TD[3], 0.399529, 1.280000);
- TextDrawTextSize(TDEditor_TD[3], 449.359375, -0.230000);
- TextDrawAlignment(TDEditor_TD[3], 1);
- TextDrawColor(TDEditor_TD[3], -40705);
- TextDrawUseBox(TDEditor_TD[3], 1);
- TextDrawBoxColor(TDEditor_TD[3], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[3], 255);
- TextDrawFont(TDEditor_TD[3], 1);
- TextDrawSetProportional(TDEditor_TD[3], 1);
- TextDrawSetShadow(TDEditor_TD[3], 0);
- TDEditor_TD[4] = TextDrawCreate(210.941207, 112.416625, "RELATORIO_DA_PARTIDA");
- TextDrawLetterSize(TDEditor_TD[4], 0.499764, 2.165834);
- TextDrawAlignment(TDEditor_TD[4], 1);
- TextDrawColor(TDEditor_TD[4], 255);
- TextDrawBackgroundColor(TDEditor_TD[4], 255);
- TextDrawFont(TDEditor_TD[4], 2);
- TextDrawSetProportional(TDEditor_TD[4], 1);
- TextDrawSetShadow(TDEditor_TD[4], 0);
- TDEditor_TD[5] = TextDrawCreate(211.911849, 134.000076, "_");
- TextDrawLetterSize(TDEditor_TD[5], 0.385411, 7.981667);
- TextDrawTextSize(TDEditor_TD[5], 322.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[5], 1);
- TextDrawColor(TDEditor_TD[5], -1);
- TextDrawUseBox(TDEditor_TD[5], 1);
- TextDrawBoxColor(TDEditor_TD[5], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[5], 255);
- TextDrawFont(TDEditor_TD[5], 1);
- TextDrawSetProportional(TDEditor_TD[5], 1);
- TextDrawSetShadow(TDEditor_TD[5], 0);
- TDEditor_TD[6] = TextDrawCreate(331.546234, 134.000076, "_");
- TextDrawLetterSize(TDEditor_TD[6], 0.385411, 7.981667);
- TextDrawTextSize(TDEditor_TD[6], 449.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[6], 1);
- TextDrawColor(TDEditor_TD[6], -1);
- TextDrawUseBox(TDEditor_TD[6], 1);
- TextDrawBoxColor(TDEditor_TD[6], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[6], 255);
- TextDrawFont(TDEditor_TD[6], 1);
- TextDrawSetProportional(TDEditor_TD[6], 1);
- TextDrawSetShadow(TDEditor_TD[6], 0);
- TDEditor_TD[7] = TextDrawCreate(231.647171, 130.500076, "EQUIPE_1");
- TextDrawLetterSize(TDEditor_TD[7], 0.400000, 1.600000);
- TextDrawAlignment(TDEditor_TD[7], 1);
- TextDrawColor(TDEditor_TD[7], 255);
- TextDrawBackgroundColor(TDEditor_TD[7], 255);
- TextDrawFont(TDEditor_TD[7], 2);
- TextDrawSetProportional(TDEditor_TD[7], 1);
- TextDrawSetShadow(TDEditor_TD[7], 0);
- TDEditor_TD[8] = TextDrawCreate(354.000000, 130.500076, "EQUIPE_2");
- TextDrawLetterSize(TDEditor_TD[8], 0.400000, 1.600000);
- TextDrawAlignment(TDEditor_TD[8], 1);
- TextDrawColor(TDEditor_TD[8], 255);
- TextDrawBackgroundColor(TDEditor_TD[8], 255);
- TextDrawFont(TDEditor_TD[8], 2);
- TextDrawSetProportional(TDEditor_TD[8], 1);
- TextDrawSetShadow(TDEditor_TD[8], 0);
- TDEditor_TD[9] = TextDrawCreate(212.823760, 151.500076, "MATOU:_0");
- TextDrawLetterSize(TDEditor_TD[9], 0.251294, 1.124998);
- TextDrawAlignment(TDEditor_TD[9], 1);
- TextDrawColor(TDEditor_TD[9], 255);
- TextDrawBackgroundColor(TDEditor_TD[9], 255);
- TextDrawFont(TDEditor_TD[9], 2);
- TextDrawSetProportional(TDEditor_TD[9], 1);
- TextDrawSetShadow(TDEditor_TD[9], 0);
- TDEditor_TD[10] = TextDrawCreate(331.882568, 152.500076, "MATOU:_0");
- TextDrawLetterSize(TDEditor_TD[10], 0.251294, 1.124998);
- TextDrawAlignment(TDEditor_TD[10], 1);
- TextDrawColor(TDEditor_TD[10], 255);
- TextDrawBackgroundColor(TDEditor_TD[10], 255);
- TextDrawFont(TDEditor_TD[10], 2);
- TextDrawSetProportional(TDEditor_TD[10], 1);
- TextDrawSetShadow(TDEditor_TD[10], 0);
- TDEditor_TD[11] = TextDrawCreate(332.353149, 161.999984, "MORREU:_0");
- TextDrawLetterSize(TDEditor_TD[11], 0.251294, 1.124998);
- TextDrawAlignment(TDEditor_TD[11], 1);
- TextDrawColor(TDEditor_TD[11], 255);
- TextDrawBackgroundColor(TDEditor_TD[11], 255);
- TextDrawFont(TDEditor_TD[11], 2);
- TextDrawSetProportional(TDEditor_TD[11], 1);
- TextDrawSetShadow(TDEditor_TD[11], 0);
- TDEditor_TD[12] = TextDrawCreate(212.353179, 161.999984, "MORREU:_0");
- TextDrawLetterSize(TDEditor_TD[12], 0.251294, 1.124998);
- TextDrawAlignment(TDEditor_TD[12], 1);
- TextDrawColor(TDEditor_TD[12], 255);
- TextDrawBackgroundColor(TDEditor_TD[12], 255);
- TextDrawFont(TDEditor_TD[12], 2);
- TextDrawSetProportional(TDEditor_TD[12], 1);
- TextDrawSetShadow(TDEditor_TD[12], 0);
- TDEditor_TD[13] = TextDrawCreate(212.353164, 171.333297, "PONTOS:_0");
- TextDrawLetterSize(TDEditor_TD[13], 0.251294, 1.124998);
- TextDrawAlignment(TDEditor_TD[13], 1);
- TextDrawColor(TDEditor_TD[13], 255);
- TextDrawBackgroundColor(TDEditor_TD[13], 255);
- TextDrawFont(TDEditor_TD[13], 2);
- TextDrawSetProportional(TDEditor_TD[13], 1);
- TextDrawSetShadow(TDEditor_TD[13], 0);
- TDEditor_TD[14] = TextDrawCreate(332.352966, 171.333297, "PONTOS:_0");
- TextDrawLetterSize(TDEditor_TD[14], 0.251294, 1.124998);
- TextDrawAlignment(TDEditor_TD[14], 1);
- TextDrawColor(TDEditor_TD[14], 255);
- TextDrawBackgroundColor(TDEditor_TD[14], 255);
- TextDrawFont(TDEditor_TD[14], 2);
- TextDrawSetProportional(TDEditor_TD[14], 1);
- TextDrawSetShadow(TDEditor_TD[14], 0);
- TDEditor_TD[15] = TextDrawCreate(214.706008, 163.166671, "_");
- TextDrawLetterSize(TDEditor_TD[15], 0.413647, -0.447499);
- TextDrawTextSize(TDEditor_TD[15], 267.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[15], 1);
- TextDrawColor(TDEditor_TD[15], -1);
- TextDrawUseBox(TDEditor_TD[15], 1);
- TextDrawBoxColor(TDEditor_TD[15], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[15], 255);
- TextDrawFont(TDEditor_TD[15], 1);
- TextDrawSetProportional(TDEditor_TD[15], 1);
- TextDrawSetShadow(TDEditor_TD[15], 0);
- TDEditor_TD[16] = TextDrawCreate(214.706008, 173.083267, "_");
- TextDrawLetterSize(TDEditor_TD[16], 0.413647, -0.447499);
- TextDrawTextSize(TDEditor_TD[16], 267.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[16], 1);
- TextDrawColor(TDEditor_TD[16], -1);
- TextDrawUseBox(TDEditor_TD[16], 1);
- TextDrawBoxColor(TDEditor_TD[16], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[16], 255);
- TextDrawFont(TDEditor_TD[16], 1);
- TextDrawSetProportional(TDEditor_TD[16], 1);
- TextDrawSetShadow(TDEditor_TD[16], 0);
- TDEditor_TD[17] = TextDrawCreate(214.706008, 182.999893, "_");
- TextDrawLetterSize(TDEditor_TD[17], 0.413647, -0.447499);
- TextDrawTextSize(TDEditor_TD[17], 267.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[17], 1);
- TextDrawColor(TDEditor_TD[17], -1);
- TextDrawUseBox(TDEditor_TD[17], 1);
- TextDrawBoxColor(TDEditor_TD[17], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[17], 255);
- TextDrawFont(TDEditor_TD[17], 1);
- TextDrawSetProportional(TDEditor_TD[17], 1);
- TextDrawSetShadow(TDEditor_TD[17], 0);
- TDEditor_TD[18] = TextDrawCreate(333.764862, 163.749893, "_");
- TextDrawLetterSize(TDEditor_TD[18], 0.413647, -0.447499);
- TextDrawTextSize(TDEditor_TD[18], 388.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[18], 1);
- TextDrawColor(TDEditor_TD[18], -1);
- TextDrawUseBox(TDEditor_TD[18], 1);
- TextDrawBoxColor(TDEditor_TD[18], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[18], 255);
- TextDrawFont(TDEditor_TD[18], 1);
- TextDrawSetProportional(TDEditor_TD[18], 1);
- TextDrawSetShadow(TDEditor_TD[18], 0);
- TDEditor_TD[19] = TextDrawCreate(334.235443, 173.666534, "_");
- TextDrawLetterSize(TDEditor_TD[19], 0.413647, -0.447499);
- TextDrawTextSize(TDEditor_TD[19], 388.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[19], 1);
- TextDrawColor(TDEditor_TD[19], -1);
- TextDrawUseBox(TDEditor_TD[19], 1);
- TextDrawBoxColor(TDEditor_TD[19], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[19], 255);
- TextDrawFont(TDEditor_TD[19], 1);
- TextDrawSetProportional(TDEditor_TD[19], 1);
- TextDrawSetShadow(TDEditor_TD[19], 0);
- TDEditor_TD[20] = TextDrawCreate(334.235443, 183.583160, "_");
- TextDrawLetterSize(TDEditor_TD[20], 0.413647, -0.447499);
- TextDrawTextSize(TDEditor_TD[20], 388.000000, 0.000000);
- TextDrawAlignment(TDEditor_TD[20], 1);
- TextDrawColor(TDEditor_TD[20], -1);
- TextDrawUseBox(TDEditor_TD[20], 1);
- TextDrawBoxColor(TDEditor_TD[20], -16777126);
- TextDrawBackgroundColor(TDEditor_TD[20], 255);
- TextDrawFont(TDEditor_TD[20], 1);
- TextDrawSetProportional(TDEditor_TD[20], 1);
- TextDrawSetShadow(TDEditor_TD[20], 0);
- TDEditor_TD[21] = TextDrawCreate(227.882522, 182.416656, "VITORIA");
- TextDrawLetterSize(TDEditor_TD[21], 0.496470, 2.270833);
- TextDrawAlignment(TDEditor_TD[21], 1);
- TextDrawColor(TDEditor_TD[21], -65281);
- TextDrawBackgroundColor(TDEditor_TD[21], 255);
- TextDrawFont(TDEditor_TD[21], 2);
- TextDrawSetProportional(TDEditor_TD[21], 1);
- TextDrawSetShadow(TDEditor_TD[21], 0);
- TDEditor_TD[22] = TextDrawCreate(350.235260, 182.416656, "VITORIA");
- TextDrawLetterSize(TDEditor_TD[22], 0.496470, 2.270833);
- TextDrawAlignment(TDEditor_TD[22], 1);
- TextDrawColor(TDEditor_TD[22], -65281);
- TextDrawBackgroundColor(TDEditor_TD[22], 255);
- TextDrawFont(TDEditor_TD[22], 2);
- TextDrawSetProportional(TDEditor_TD[22], 1);
- TextDrawSetShadow(TDEditor_TD[22], 0);
- Contagem_Equipe_1 = 0;
- Contagem_Equipe_2 = 0;
- Pontos_Equipe_1 = 0;
- Pontos_Equipe_2 = 0;
- #if SHOW_NICK == true
- ShowNameTags(0);
- #endif
- return 1;
- }
- public OnFilterScriptExit()
- {
- DestroyDynamicCP(CP_Equipe_1);
- DestroyDynamicCP(CP_Equipe_2);
- DestroyDynamicPickup(PickupMode);
- for(new i = 0; i < sizeof(TDEditor_TD); i++)
- TextDrawDestroy(TDEditor_TD[i]);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TDEditor_PTD[0] = CreatePlayerTextDraw(playerid, 1.058681, 281.000183, "_");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[0], 0.306353, 3.752499);
- PlayerTextDrawTextSize(playerid, TDEditor_PTD[0], 84.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[0], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[0], -1);
- PlayerTextDrawUseBox(playerid, TDEditor_PTD[0], 1);
- PlayerTextDrawBoxColor(playerid, TDEditor_PTD[0], -16777126);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[0], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[0], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[0], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[0], 1);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[0], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[0], 0);
- TDEditor_PTD[1] = CreatePlayerTextDraw(playerid, 3.411756, 278.666656, "MEMBROS:_0");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[1], 0.265411, 1.139165);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[1], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[1], -65281);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[1], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[1], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[1], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[1], 2);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[1], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[1], 0);
- TDEditor_PTD[2] = CreatePlayerTextDraw(playerid, 3.411756, 286.967163, "MATOU:_0");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[2], 0.257411, 1.139165);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[2], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[2], -65281);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[2], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[2], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[2], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[2], 2);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[2], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[2], 0);
- TDEditor_PTD[3] = CreatePlayerTextDraw(playerid, 3.411756, 295.167663, "MORREU:_0");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[3], 0.257411, 1.139165);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[3], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[3], -65281);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[3], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[3], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[3], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[3], 2);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[3], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[3], 0);
- TDEditor_PTD[4] = CreatePlayerTextDraw(playerid, 3.411756, 303.668182, "CAPTUROU:_0");
- PlayerTextDrawLetterSize(playerid, TDEditor_PTD[4], 0.257411, 1.139165);
- PlayerTextDrawAlignment(playerid, TDEditor_PTD[4], 1);
- PlayerTextDrawColor(playerid, TDEditor_PTD[4], -65281);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[4], 0);
- PlayerTextDrawSetOutline(playerid, TDEditor_PTD[4], 0);
- PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[4], 255);
- PlayerTextDrawFont(playerid, TDEditor_PTD[4], 2);
- PlayerTextDrawSetProportional(playerid, TDEditor_PTD[4], 1);
- PlayerTextDrawSetShadow(playerid, TDEditor_PTD[4], 0);
- Equipe[playerid] = 0;
- Matou[playerid] = 0;
- Morreu[playerid] = 0;
- Capturou[playerid] = 0;
- FoiMG[playerid] = false;
- ComPickup[playerid] = false;
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- new String[129];
- if(IniciouMG == true && FoiMG[playerid] == true)
- {
- if(Contagem_Equipe_1 == 0)
- {
- Equipe[playerid] = 1;
- Contagem_Equipe_1 ++;
- SetPlayerTeam(playerid, 1);
- SetPlayerSkin(playerid, 105);
- new RandomSpawn = random(sizeof(RandomEquipe1Spawn));
- SetPlayerPos(playerid, RandomEquipe1Spawn[RandomSpawn][0], RandomEquipe1Spawn[RandomSpawn][1], RandomEquipe1Spawn[RandomSpawn][2]);
- format(String, sizeof(String), "O Jogador %s entrou para a Equipe %i. [MEMBROS: %i]", GetName(playerid), Equipe[playerid], Contagem_Equipe_1);
- for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
- }
- else if(Contagem_Equipe_1 >= Contagem_Equipe_2)
- {
- Equipe[playerid] = 2;
- Contagem_Equipe_2 ++;
- SetPlayerTeam(playerid, 2);
- SetPlayerSkin(playerid, 103);
- new RandomSpawn = random(sizeof(RandomEquipe2Spawn));
- SetPlayerPos(playerid, RandomEquipe2Spawn[RandomSpawn][0], RandomEquipe2Spawn[RandomSpawn][1], RandomEquipe2Spawn[RandomSpawn][2]);
- format(String, sizeof(String), "O Jogador %s entrou para a Equipe %i. [MEMBROS: %i]", GetName(playerid), Equipe[playerid], Contagem_Equipe_2);
- for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
- }
- else if(Contagem_Equipe_2 >= Contagem_Equipe_1)
- {
- Equipe[playerid] = 1;
- Contagem_Equipe_1 ++;
- SetPlayerTeam(playerid, 1);
- SetPlayerSkin(playerid, 105);
- new RandomSpawn = random(sizeof(RandomEquipe1Spawn));
- SetPlayerPos(playerid, RandomEquipe1Spawn[RandomSpawn][0], RandomEquipe1Spawn[RandomSpawn][1], RandomEquipe1Spawn[RandomSpawn][2]);
- format(String, sizeof(String), "O Jogador %s entrou para a Equipe %i. [MEMBROS: %i]", GetName(playerid), Equipe[playerid], Contagem_Equipe_1);
- for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
- }
- SendClientMessageToAll(-1, String);
- SetPlayerArmour(playerid, 100.0);
- SetPlayerHealth(playerid, 100.0);
- for(new i = 0; i < sizeof(TDEditor_PTD); i++)
- PlayerTextDrawShow(playerid, TDEditor_PTD[i]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[0]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
- GivePlayerWeapon(playerid, 5, 999);
- GivePlayerWeapon(playerid, 16, 999);
- GivePlayerWeapon(playerid, 22, 999);
- GivePlayerWeapon(playerid, 26, 999);
- GivePlayerWeapon(playerid, 31, 999);
- GivePlayerWeapon(playerid, 34, 999);
- GivePlayerWeapon(playerid, 35, 3);
- TimerAtualizar[playerid] = SetTimerEx("AtualizarDados", 1000, true, "i", playerid);
- return 1;
- }
- SetPlayerHealth(playerid, 100.0);
- for(new i = 0; i < MAX_PLAYERS; i++) SetPlayerMarkerForPlayer(playerid, i, 0x663300FF);
- return 1;
- }
- public OnPlayerRequestClass(playerid,classid)
- {
- return SpawnPlayer(playerid);
- }
- forward AtualizarDados(playerid);
- public AtualizarDados(playerid)
- {
- new String[50];
- format(String, sizeof(String), "Equipe_1:_%i_PONTOS", Pontos_Equipe_1);
- TextDrawSetString(TDEditor_TD[1], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[1]);
- format(String, sizeof(String), "Equipe_2:_%i_PONTOS", Pontos_Equipe_2);
- TextDrawSetString(TDEditor_TD[2], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[2]);
- if(Equipe[playerid] == 1)
- {
- format(String, sizeof(String), "MEMBROS:_%i", Contagem_Equipe_1);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[1], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[1]);
- format(String, sizeof(String), "MATOU:_%i", Matou[playerid]);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[2], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[2]);
- format(String, sizeof(String), "MORREU:_%i", Morreu[playerid]);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[3], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[3]);
- format(String, sizeof(String), "CAPTUROU:_%i", Capturou[playerid]);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[4], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[4]);
- }
- else if(Equipe[playerid] == 2)
- {
- format(String, sizeof(String), "MEMBROS:_%i", Contagem_Equipe_2);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[1], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[1]);
- format(String, sizeof(String), "MATOU:_%i", Matou[playerid]);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[2], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[2]);
- format(String, sizeof(String), "MORREU:_%i", Morreu[playerid]);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[3], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[3]);
- format(String, sizeof(String), "CAPTUROU:_%i", Capturou[playerid]);
- PlayerTextDrawSetString(playerid, TDEditor_PTD[4], String);
- PlayerTextDrawShow(playerid, TDEditor_PTD[4]);
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new String[129];
- if(Equipe[playerid] == 1)
- Contagem_Equipe_1 --,
- format(String, sizeof(String), "O Jogador %s [Equipe %i] saiu do servidor. [MEMBROS: %i]", GetName(playerid), Equipe[playerid], Contagem_Equipe_1);
- else if(Equipe[playerid] == 2)
- Contagem_Equipe_2 --,
- format(String, sizeof(String), "O Jogador %s [Equipe %i] saiu do servidor. [MEMBROS: %i]", GetName(playerid), Equipe[playerid], Contagem_Equipe_2);
- SendClientMessageToAll(-1, String);
- if(ComPickup[playerid] == true)
- {
- new RandomSpawnPickup = random(sizeof(RandomPickupSpawn));
- PickupMode = CreateDynamicPickup(1279, 19, RandomPickupSpawn[RandomSpawnPickup][0], RandomPickupSpawn[RandomSpawnPickup][1], RandomPickupSpawn[RandomSpawnPickup][2], -1);
- }
- for(new i = 0; i < sizeof(TDEditor_PTD); i++)
- PlayerTextDrawDestroy(playerid, TDEditor_PTD[i]);
- for(new i = 0; i < sizeof(TDEditor_TD); i++)
- TextDrawDestroy(TDEditor_TD[i]);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- new String[129];
- if(FoiMG[playerid] == true || FoiMG[killerid] == true)
- {
- if(killerid != INVALID_PLAYER_ID)
- {
- if(ComPickup[playerid] == false)
- format(String, sizeof(String), "O Jogador %s [Equipe %i] foi morto em combate pelo Jogador %s [Equipe %i].", GetName(playerid), Equipe[playerid], GetName(killerid), Equipe[killerid]),
- SendClientMessageToAll(-1, String);
- else if(ComPickup[playerid] == true)
- {
- new
- Float:PosX,
- Float:PosY,
- Float:PosZ
- ;
- GetPlayerPos(playerid, PosX, PosY, PosZ);
- PickupMode = CreateDynamicPickup(1279, 19, PosX, PosY, PosZ, -1);
- SendClientMessage(playerid, -1, "Você perdeu a droga.");
- RemovePlayerAttachedObject(playerid, PlayerComDroga);
- DestroyObject(PlayerComDroga);
- format(String, sizeof(String), "O Jogador %s [Equipe %i] foi morto. Peguem a droga!!!", GetName(playerid), Equipe[playerid]);
- SendClientMessageToAll(-1, String);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(FoiMG[i] == false) continue;
- SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
- }
- ComPickup[playerid] = false;
- }
- else format(String, sizeof(String), "O Jogador %s [Equipe %i] morreu.", GetName(playerid), Equipe[playerid]),
- SendClientMessageToAll(-1, String);
- Morreu[playerid] ++;
- Matou[killerid] ++;
- if(Equipe[playerid] == 1) Contagem_Equipe_1 --;
- else if(Equipe[playerid] == 2) Contagem_Equipe_2 --;
- }
- else
- {
- if(ComPickup[playerid] == true)
- {
- new
- Float:PosX,
- Float:PosY,
- Float:PosZ
- ;
- GetPlayerPos(playerid, PosX, PosY, PosZ);
- PickupMode = CreateDynamicPickup(1279, 19, PosX, PosY, PosZ, -1);
- SendClientMessage(playerid, -1, "Você perdeu a droga.");
- RemovePlayerAttachedObject(playerid, PlayerComDroga);
- DestroyObject(PlayerComDroga);
- format(String, sizeof(String), "O Jogador %s [Equipe %i] foi morto. Peguem a droga!!!", GetName(playerid), Equipe[playerid]);
- SendClientMessageToAll(-1, String);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(FoiMG[i] == false) continue;
- SetPlayerMarkerForPlayer(playerid, i, 0xFFFFFF00);
- }
- ComPickup[playerid] = false;
- }
- else format(String, sizeof(String), "O Jogador %s [Equipe %i] morreu.", GetName(playerid), Equipe[playerid]),
- SendClientMessageToAll(-1, String);
- Morreu[playerid] ++;
- if(Equipe[playerid] == 1) Contagem_Equipe_1 --;
- else if(Equipe[playerid] == 2) Contagem_Equipe_2 --;
- }
- }
- return 1;
- }
- public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)
- {
- new
- Float:pHealth
- ;
- GetPlayerHealth(damagedid, pHealth);
- if(damagedid != INVALID_PLAYER_ID)
- {
- if(Equipe[playerid] == Equipe[damagedid])
- return SendClientMessage(playerid, -1, "Esse player é da sua Equipe!"),
- SetPlayerHealth(damagedid, pHealth);
- }
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid, checkpointid)
- {
- new String[129];
- if(checkpointid == CP_Equipe_2)
- {
- if(Equipe[playerid] == 2 && ComPickup[playerid] == true)
- {
- Pontos_Equipe_2 ++;
- DestroyDynamicPickup(PickupMode);
- format(String, sizeof(String), "O Jogador %s [Equipe %i] levou mais uma droga para sua Equipe! [TOTAL: %i/%i]", GetName(playerid), Equipe[playerid], Pontos_Equipe_2, MAX_PONTOS);
- SendClientMessageToAll(-1, String);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(FoiMG[i] == false) continue;
- SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
- }
- RemovePlayerAttachedObject(playerid, PlayerComDroga);
- DestroyObject(PlayerComDroga);
- Capturou[playerid] ++;
- ComPickup[playerid] = false;
- new RandomSpawnPickup = random(sizeof(RandomPickupSpawn));
- PickupMode = CreateDynamicPickup(1279, 19, RandomPickupSpawn[RandomSpawnPickup][0], RandomPickupSpawn[RandomSpawnPickup][1], RandomPickupSpawn[RandomSpawnPickup][2], -1);
- if(Pontos_Equipe_2 >= MAX_PONTOS)
- {
- foreach(new i : Player)
- {
- if(FoiMG[i] == false) continue;
- SetPlayerHealth(i, 9999999.0);
- ResetPlayerWeapons(i);
- EncerrarPartida(i);
- }
- }
- }
- }
- if(checkpointid == CP_Equipe_1)
- {
- if(Equipe[playerid] == 1 && ComPickup[playerid] == true)
- {
- Pontos_Equipe_1 ++;
- DestroyDynamicPickup(PickupMode);
- format(String, sizeof(String), "O Jogador %s [Equipe %i] levou mais uma droga para sua Equipe! [TOTAL: %i/%i]", GetName(playerid), Equipe[playerid], Pontos_Equipe_1, MAX_PONTOS);
- SendClientMessageToAll(-1, String);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(FoiMG[i] == false) continue;
- SetPlayerMarkerForPlayer(i, playerid, 0xFFFFFF00);
- }
- RemovePlayerAttachedObject(playerid, PlayerComDroga);
- DestroyObject(PlayerComDroga);
- Capturou[playerid] ++;
- ComPickup[playerid] = false;
- new RandomSpawnPickup = random(sizeof(RandomPickupSpawn));
- PickupMode = CreateDynamicPickup(1279, 19, RandomPickupSpawn[RandomSpawnPickup][0], RandomPickupSpawn[RandomSpawnPickup][1], RandomPickupSpawn[RandomSpawnPickup][2], -1);
- if(Pontos_Equipe_1 >= MAX_PONTOS)
- {
- foreach(new i : Player)
- {
- if(FoiMG[i] == false) continue;
- SetPlayerHealth(i, 9999999.0);
- ResetPlayerWeapons(i);
- EncerrarPartida(i);
- }
- }
- }
- }
- return 1;
- }
- stock EncerrarPartida(playerid)
- {
- KillTimer(TimerAtualizar[playerid]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[0]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[1]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[2]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[3]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[4]);
- new String[50], Contar_Matou[2], Contar_Morreu[2];
- foreach(new i : Player)
- {
- if(Equipe[i] == 1) Contar_Matou[0] += Matou[i];
- if(Equipe[i] == 2) Contar_Matou[1] += Matou[i];
- }
- format(String, sizeof(String), "MATOU:_%i", Contar_Matou[0]);
- TextDrawSetString(TDEditor_TD[9], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[9]);
- format(String, sizeof(String), "MATOU:_%i", Contar_Matou[1]);
- TextDrawSetString(TDEditor_TD[10], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[10]);
- foreach(new i : Player)
- {
- if(Equipe[i] == 1) Contar_Morreu[0] += Morreu[i];
- if(Equipe[i] == 2) Contar_Morreu[1] += Morreu[i];
- }
- format(String, sizeof(String), "MORREU:_%i", Contar_Morreu[0]);
- TextDrawSetString(TDEditor_TD[12], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[12]);
- format(String, sizeof(String), "MORREU:_%i", Contar_Morreu[1]);
- TextDrawSetString(TDEditor_TD[11], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[11]);
- format(String, sizeof(String), "PONTOS:_%i", Pontos_Equipe_1);
- TextDrawSetString(TDEditor_TD[13], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[13]);
- format(String, sizeof(String), "PONTOS:_%i", Pontos_Equipe_2);
- TextDrawSetString(TDEditor_TD[14], String);
- TextDrawShowForPlayer(playerid, TDEditor_TD[14]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[3]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[4]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[5]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[6]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[7]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[8]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[15]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[16]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[17]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[18]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[19]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[20]);
- if(Pontos_Equipe_1 > Pontos_Equipe_2) TextDrawShowForPlayer(playerid, TDEditor_TD[21]);
- else if(Pontos_Equipe_2 > Pontos_Equipe_1) TextDrawShowForPlayer(playerid, TDEditor_TD[22]);
- Contagem_Equipe_1 = 0;
- Contagem_Equipe_2 = 0;
- IniciouMG = false;
- DestroyDynamicCP(CP_Equipe_1);
- DestroyDynamicCP(CP_Equipe_2);
- DestroyDynamicPickup(PickupMode);
- SetTimerEx("EsconderTextDraws", 15 * 1000, false, "i", playerid);
- SendClientMessageToAll(-1, "A partida acabou.");
- return 1;
- }
- forward EsconderTextDraws(playerid);
- public EsconderTextDraws(playerid)
- {
- if(FoiMG[playerid] == true)
- {
- new String[50];
- TextDrawHideForPlayer(playerid, TDEditor_TD[0]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[1]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[2]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[3]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[4]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[5]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[6]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[7]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[8]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[9]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[10]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[11]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[12]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[13]);
- TextDrawShowForPlayer(playerid, TDEditor_TD[14]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[15]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[16]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[17]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[18]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[19]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[20]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[21]);
- TextDrawHideForPlayer(playerid, TDEditor_TD[22]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[0]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[1]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[2]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[3]);
- PlayerTextDrawHide(playerid, TDEditor_PTD[4]);
- format(String, sizeof(String), "MATOU:_0");
- TextDrawSetString(TDEditor_TD[9], String);
- TextDrawHideForPlayer(playerid, TDEditor_TD[9]);
- format(String, sizeof(String), "MATOU:_0");
- TextDrawSetString(TDEditor_TD[10], String);
- TextDrawHideForPlayer(playerid, TDEditor_TD[10]);
- format(String, sizeof(String), "MORREU:_0");
- TextDrawSetString(TDEditor_TD[12], String);
- TextDrawHideForPlayer(playerid, TDEditor_TD[12]);
- format(String, sizeof(String), "MORREU:_0");
- TextDrawSetString(TDEditor_TD[11], String);
- TextDrawHideForPlayer(playerid, TDEditor_TD[11]);
- format(String, sizeof(String), "PONTOS:_%i", Pontos_Equipe_1 = 0);
- TextDrawSetString(TDEditor_TD[13], String);
- TextDrawHideForPlayer(playerid, TDEditor_TD[13]);
- format(String, sizeof(String), "PONTOS:_%i", Pontos_Equipe_2 = 0);
- TextDrawSetString(TDEditor_TD[14], String);
- TextDrawHideForPlayer(playerid, TDEditor_TD[14]);
- if(FoiMG[playerid] == true) FoiMG[playerid] = false;
- SpawnPlayer(playerid);
- }
- }
- public OnPlayerPickUpDynamicPickup(playerid, pickupid)
- {
- new String[129];
- if(pickupid == PickupMode)
- {
- ComPickup[playerid] = true;
- SendClientMessage(playerid, -1, "Você pegou o pickup.");
- PlayerComDroga = CreateObject(1279, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
- AttachObjectToPlayer(PlayerComDroga, playerid, 0.0, 0.0, 2.0, 0.0, 0.0, 0);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(i == playerid || FoiMG[i] == false) continue;
- SetPlayerMarkerForPlayer(i, playerid, 0xCCFF99FF);
- }
- foreach(new i : Player)
- {
- if(Equipe[i] == Equipe[playerid])
- format(String, sizeof(String), "O Jogador %s [Equipe %i] pegou a droga. Proteja ele!", GetName(playerid), Equipe[playerid], Pontos_Equipe_1);
- else format(String, sizeof(String), "O Jogador %s [Equipe %i] pegou a droga. Mate ele e pegue a droga!", GetName(playerid), Equipe[playerid], Pontos_Equipe_1);
- SendClientMessage(i, -1, String);
- DestroyDynamicPickup(PickupMode);
- }
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- CMD:iniciarmg(playerid)
- {
- new String[129];
- if(IniciouMG == true)
- return SendClientMessage(playerid, -1, "O MiniGame já foi iniciado!");
- format(String, sizeof(String), "O Jogador %s iniciou o MiniGame. /irmg", GetName(playerid));
- SendClientMessageToAll(-1, String);
- IniciouMG = true;
- CP_Equipe_1 = CreateDynamicCP(1416.1147, 2774.2197, 10.8203, 5.0, -1, -1, -1, 800.0);
- CP_Equipe_2 = CreateDynamicCP(1143.2130, 2785.1191, 10.8203, 5.0, -1, -1, -1, 800.0);
- new RandomSpawnPickup = random(sizeof(RandomPickupSpawn));
- PickupMode = CreateDynamicPickup(1279, 19, RandomPickupSpawn[RandomSpawnPickup][0], RandomPickupSpawn[RandomSpawnPickup][1], RandomPickupSpawn[RandomSpawnPickup][2], -1);
- return 1;
- }
- CMD:irmg(playerid)
- {
- if(IniciouMG == false)
- return SendClientMessage(playerid, -1, "O MiniGame ainda não foi iniciado!");
- if(FoiMG[playerid] == true)
- return SendClientMessage(playerid, -1, "Você já está no MiniGame!");
- FoiMG[playerid] = true;
- SpawnPlayer(playerid);
- SendClientMessage(playerid, -1, "Você foi para o MiniGame.");
- SendClientMessage(playerid, -1, "________________________________________________________");
- SendClientMessage(playerid, -1, "Como funciona:");
- SendClientMessage(playerid, -1, "Encontre a droga que foi perdida nesta área.");
- SendClientMessage(playerid, -1, "Se um integrande de sua equipe encontrar a droga, proteja-o!");
- SendClientMessage(playerid, -1, "Se um adversário encontrar a droga, Mate-o!");
- SendClientMessage(playerid, -1, "Para identificar o jogador com a droga, siga a seta.");
- SendClientMessage(playerid, -1, "________________________________________________________");
- return 1;
- }
- stock GetName(playerid)
- {
- new
- GetName_[MAX_PLAYER_NAME]
- ;
- GetPlayerName(playerid, GetName_, sizeof(GetName_));
- return GetName_;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement