11.04.2013, 01:52
Galera como q faзo em uma tal coordenada,(um TERITуRIO) quando matasse, с pegasse procura
if(IsPlayerInPlace(i,2016.010986, -1161.922363, 2324.010986, -923.518310)){
DMLiberado2[i] = 1;
GangZoneFlashForAll(dm,0xFFFFFFAA);
} else {
if(DMLiberado2[i] == 1){
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(dm);
}
forward areadm();
public areadm()
{
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)) {
//Scores
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
if(IsPlayerInPlace(i,2016.010986, -1161.922363, 2324.010986, -923.518310)){
if(tadm[i] == 0){
SendClientMessage(i, 0x408080FF,"{F81414}(dm){FFFFFF} Vocк entrou na area de dm e ganhou as armas");
SendClientMessage(i, 0x408080FF,"{F81414}(dm){FFFFFF} Ao sair, vocк terб todas as armas da sua profissгo e perderб as armas da area dm!!");
ResetPlayerWeapons(i);
GivePlayerWeapon(i,30,999999);
GivePlayerWeapon(i,28,999999);
GivePlayerWeapon(i,24,999999);
GivePlayerWeapon(i,4,999999);
GivePlayerWeapon(i,16,2);
GivePlayerWeapon(i,34,999999);
}
tadm[i] = 1;
GangZoneFlashForAll(dm,0xFFFFFFAA);
} else {
if(tadm[i] == 1){
tadm[i] = 0;
GangZoneStopFlashForAll(dm);
ResetPlayerWeapons(i);
Logarprof(i);
SendClientMessage(i, 0x408080FF,"{F81414}(dm){FFFFFF} Vocк saiu da area dm! e perdeu as armas.");
}
}
if(IsPlayerInPlace(i,2016.010986, -1161.922363, 2324.010986, -923.518310)){
DMLiberado2[i] = 1;
GangZoneFlashForAll(dm,0xFFFFFFAA);
} else {
if(DMLiberado2[i] == 1){
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(dm);
}
if(IsPlayerInPlace(i,1267.535, 2084.409, 1408.109, 2235.263)){
DMLiberado2[i] = 1;
GangZoneFlashForAll(areadmlv,0xFFFFFFAA);
} else {
if(DMLiberado2[i] == 1){
DMLiberado2[i] = 0;
GangZoneStopFlashForAll(areadmlv);
}
}
}
}
}
}
stock IsPlayerInIndustria(playerid)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= 111.7913 && y >= 1336.2972 && x <= 286.8861 && y <= 1484.0529) return 1;
else return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(emguerra[playerid] == 1)
{
format(gstring, 128, "%s saiu da zona de guerra!", PlayerName(playerid));
SendClientMessageToAll(GetPlayerColor(playerid), gstring);
emguerra[playerid] = 0;
}
//new dmessage[128];
//new deathreason[20];
SendDeathMessage(killerid, playerid, reason);
new Float:px,Float:py,Float:pz;
PlayerInactivity[playerid] = 0;
DropWeapons(playerid);
DropVida(playerid);
//DropGrana(playerid);
gPlayerSpawned[playerid] = 0;
PlayerInfo[playerid][pLocal] = 255;
GetPlayerPos(playerid, px, py, pz);
spawnado[playerid] = 0;
antifakekill[playerid] ++;
SetTimerEx("antifakekill2", 1000,false,"i",playerid);
if (gPlayerTerminal[playerid] != 0)
{
BusrouteEnd(playerid);
}
if(PlayerPaintballing[killerid] == 0)
{
SetPlayerCriminal(killerid, 255, "Assasinato");
WantedPoints[playerid]+=1;
}
if(TendoGuerra == 1 && IsPlayerInTerritorio(playerid) && IsPlayerInTerritorio(killerid))
{
if(PlayerInfo[killerid][pMembro] == 3 || PlayerInfo[killerid][pLider] == 3)
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Territorio[talmortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Territorio[almortos] += 1;
}
}
if(PlayerInfo[killerid][pMembro] == 6 || PlayerInfo[killerid][pLider] == 6)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Territorio[exemortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Territorio[almortos] += 1;
}
}
if(PlayerInfo[killerid][pMembro] == 15 || PlayerInfo[killerid][pLider] == 15)
{
if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Territorio[exemortos] += 1;
}
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Territorio[talmortos] += 1;
}
}
}