PHP код:
#include <a_samp>
#if defined FILTERSCRIPT
#include <cpstream> // include para que os checkpoints funcionem
#define MAX_GANGS 25 // maximo de gangs, aqui no caso serгo 3 gangs
#define ZONE_TIME 15 // tempo para dominar em segundos
//
forward ZoneCheckpointChecker(); // declaraзгo da callback para checar as gangzones
static cpzone[MAX_PLAYERS][MAX_GANGS+1],lastcp[MAX_PLAYERS]; // getar checkpoint e salvar o ultimo checkpoint em que vocк passou
new ballas,grove,swat,exercito,mafia,chineses,caminhon eiros,playboys,triads,policias,comando vermelho,TCP,ADA,policia federal,piratas,PCC,traficantes,surfistas,alqaeda, FBI,hards,mendigos,frangos,coveiros,caipiras,
cpballas,cpgrove,cpswat,cpexercito,cpmafia,cpchineses,c pcaminhoneiros,cpplayboys,cptriads,cppolicias,cpco mando vermelho,cpTCP,cpADA,cppolicia federal,cppiratas,cpPCC,cptraficantes,cpsurfistas, cpalqaeda,cpFBI,cphards,cpmendigos,cpfrangos,cpcov eiros,cpcaipiras; // declaraзгo dos checkpoints e das gangzones
new GangNames[25][] = // nome das gangs para aparecer 'A gang X doiminou mais um territуrio'
{
"ballas",
"grove",
"swat",
"exercito",
"mafia",
"chineses",
"caminhoneiros",
"playboys",
"triads",
"policias",
"comando vermelho",
"TCP",
"ADA",
"policia federal",
"piratas",
"PCC",
"traficantes",
"surfistas",
"alqaeda",
"FBI",
"hards",
"mendigos",
"frangos",
"coveiros",
"caipiras"
};
new pgzcolor[MAX_GANGS+1] = // cores para os plaeyrs
0xC905C996, 0x00FF0096, 0x0000A096, 0x80800096, 0xC0C0C096, 0xFF80C096, 0x00FFFF96, 0x40808096, 0x00FF004B, 0x0000FF96, 0xFF000096, 0x80FFFF96, 0xFFFFFF96,0x53472D96, 0xE6E60096, 0xFFA98096, 0x80004096, 0xFFFFAA96, 0xEC4D0096, 0x80808096, 0x00C12296, 0x9B9B0096, 0xDA1B2096, 0x40004096, 0x8A450096 // igual
};
new gzcolor[MAX_GANGS+1] = // cores para as gangzones
{
0xC905C996, 0x00FF0096, 0x0000A096, 0x80800096, 0xC0C0C096, 0xFF80C096, 0x00FFFF96, 0x40808096, 0x00FF004B, 0x0000FF96, 0xFF000096, 0x80FFFF96, 0xFFFFFF96,0x53472D96, 0xE6E60096, 0xFFA98096, 0x80004096, 0xFFFFAA96, 0xEC4D0096, 0x80808096, 0x00C12296, 0x9B9B0096, 0xDA1B2096, 0x40004096, 0x8A450096 // igual
};
main()
{
print("\n----------------------------------");
print(" BRASIL SV TDM [3.0] MATA MATA ");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
SetGameModeText("BRASIL SV TDM [3.0] MATA MATA");
SetTimer("ZoneCheckpointChecker", 1000, true); // timer para a callback
//ballas
AddPlayerClass(102,2303.6819,-1630.4944,14.5754,189.4422,0,0,0,0,0,0); // skin para gang
AddPlayerClass(103,2303.6819,-1630.4944,14.5754,189.4422,0,0,0,0,0,0); // skin para gang
AddPlayerClass(104,2303.6819,-1630.4944,14.5754,189.4422,0,0,0,0,0,0); // skin para gang
//groves
AddPlayerClass(105, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(106, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(107, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(0, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(270, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//swat
AddPlayerClass(280, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//exercito
AddPlayerClass(287, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//mafia
AddPlayerClass(294, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(296, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(295, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//chineses
AddPlayerClass(123, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(263, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//caminhoneiros
AddPlayerClass(261, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(201, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(202, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//playboys
AddPlayerClass(21, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(22, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(23, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//triads
AddPlayerClass(117, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(118, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(120, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//policia
AddPlayerClass(280, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(265, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(266, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(267, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//comando vermelho
AddPlayerClass(19, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(170, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(180, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//TCP
AddPlayerClass(179, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(183, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//ADA
AddPlayerClass(173, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(174, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(175, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//policia Federal
AddPlayerClass(283, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(288, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//piratas
AddPlayerClass(108, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(109, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(110, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//PCC
AddPlayerClass(5, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(271, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(22, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//traficantes
AddPlayerClass(21, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(28, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(29, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//surfistas
AddPlayerClass(18, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(97, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(140, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//alqaeda
AddPlayerClass(121, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(72, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(71, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//FBI
AddPlayerClass(286, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(141, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//Hards
AddPlayerClass(53, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(136, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(210, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//Mendingos
AddPlayerClass(230, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(134, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(137, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//frangos
AddPlayerClass(155, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(167, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//coveiros
AddPlayerClass(162, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(78, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
//caipiras
AddPlayerClass(158, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(161, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
AddPlayerClass(198, 2532.4045,-1667.5391,15.1688,83.0852,0,0,0,0,0,0); // skin paga gang
ballas = GangZoneCreate(1862,543, -1279,192, 2079,305, -1141,021); // cria gangzone para a gang 1
ballas = CPS_AddCheckpoint(1999,445, -1231,819, 1999,445, -1231,819);
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
return 1;
}
return SendClientMessage(playerid, -1,"ERRO: Este Comando Nгo Existe No Nosso Servidor");
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}