@suhrab_mujeeb -.-" I mean the 3 buttons...
Nope I've searched for that too, no text found...
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
pgxmorto = 1;
PlayerInfo[playerid][pInvWeapon] = 0;
PlayerInfo[playerid][pInvAmmo] = 0;
new string[256];
for(new n = 0; n < sizeof(GangZoneInfo); n++)
{
if(PlayerToPoint(25, playerid,GangZoneInfo[n][EnterX], GangZoneInfo[n][EnterY], GangZoneInfo[n][EnterZ]))
{
if(CapoGang[playerid] == GangZoneInfo[n][gzOwned] && InizioGangWar[playerid] == 1)
{
format(string, sizeof(string), "%s ti ha ucciso, hai perso il tuo territorio",GetPlayerNameEx(killerid));
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
GangZoneInfo[n][gzOwned] = PlayerInfo[killerid][pClan];
strmid(GangZoneInfo[n][gzOwner],Clan[PlayerInfo[killerid][pClan]][cName], 0, strlen(Clan[PlayerInfo[killerid][pClan]][cName]), 999);
format(string, sizeof(string), "%s ha ucciso %s il capo clan della gang, Avete vinto la gang war!",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid));
SendClanMessage(PlayerInfo[killerid][pClan],COLOR_LIGHTBLUE, string);
SaveGangZones();
}
else if(CapoGang[playerid] == PlayerInfo[playerid][pClan] && InizioGangWar[playerid] == 1)
{
format(string, sizeof(string), "%s ti ha ucciso, hai perso l'attacco al territorio",GetPlayerNameEx(killerid));
SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "%s ha ucciso %s il capo clan della gang, Avete vinto la gang war!",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid));
SendClanMessage(PlayerInfo[killerid][pClan],COLOR_LIGHTBLUE, string);
}
else if(Difendere[playerid] == playerid || Attaccare[playerid] == playerid && InizioGangWar[playerid] == 1)
{
format(string, sizeof(string), "%s и stato annientato!",GetPlayerNameEx(playerid));
SendClanMessage(PlayerInfo[playerid][pClan],COLOR_WHITE, string);
Difendere[playerid] = 0;
Attaccare[playerid] = 0;
}
CapoGang[playerid] = 255;
}
}
if(IDContratto == playerid)
{
if(PlayerInfo[killerid][pFaction] == 8)
{
GivePlayerCash(killerid, SoldiContratto);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pFaction] == 8)
{
SendClientMessage(i,BLUE, "[INFO:] Contratto sciolto motivo: Contrattato morto");
return 1;
}
}
}
IDKiller = 999;
IDContratto = 999;
SoldiContratto = 0;
}
if(Rapinatorec == playerid)
{
new f = maxobjm+1;
for(new a = 0; a < sizeof(ObjSCoords); a++)
{
if(ObjSCoords[a][0] == 0.0) f = a;
}
if(f == maxobjm+1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRORE:]Non puoi gettare la tua sacca a terra");
else
{
if(Bottino[playerid] > 0)
{
RemovePlayerAttachedObject(playerid, 3);
GetPlayerPos(playerid, ObjSCoords[f][0], ObjSCoords[f][1], ObjSCoords[f][2]);
objectsacca[f] = CreateDynamicObject(1550,ObjSCoords[f][0],ObjSCoords[f][1],ObjSCoords[f][2]-1,93.7,120.0,120.0);
SaccaDropped[f] = Bottino[playerid];
}
Rapinatorec = 255;
CasJobTime = -1;
Bottino[playerid] = 0;
TextDrawHideForPlayer(playerid, Textdraw14);
}
}
if(Rapinatore == playerid)
{
new f = maxobjm+1;
for(new a = 0; a < sizeof(ObjSCoords); a++)
{
if(ObjSCoords[a][0] == 0.0) f = a;
}
if(f == maxobjm+1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRORE:]Non puoi gettare la tua sacca a terra");
else
{
if(Bottino[playerid] > 0)
{
SaccaDropped[f] = Bottino[playerid];
RemovePlayerAttachedObject(playerid, 3);
GetPlayerPos(playerid, ObjSCoords[f][0], ObjSCoords[f][1], ObjSCoords[f][2]);
objectsacca[f] = CreateDynamicObject(1550,ObjSCoords[f][0],ObjSCoords[f][1],ObjSCoords[f][2]-1,93.7,120.0,120.0);
}
Rapinatore = 255;
BankJobTime = -1;
Bottino[playerid] = 0;
TextDrawHideForPlayer(playerid, Textdraw14);
}
}
RespawnOspedale[playerid] = 1;
//GETTA L'ARMA ALLA MORTE
new gunID = GetPlayerWeapon(playerid);
new gunAmmo = GetPlayerAmmo(playerid);
if(gunID != 0 && gunAmmo != 0)
{
new f = maxobj+1;
for(new a = 0; a < sizeof(ObjCoords); a++)
{
if(ObjCoords[a][0] == 0.0) f = a;
}
if(f == maxobj+1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRORE:]Non puoi gettare armi a terra, prova piщ tardi!!");
else
{
RemovePlayerWeapon(playerid, gunID);
ObjectID[f][0] = gunID;
ObjectID[f][1] = gunAmmo;
GetPlayerPos(playerid, ObjCoords[f][0], ObjCoords[f][1], ObjCoords[f][2]);
object[f] = CreateDynamicObject(GunObjects[gunID][0],ObjCoords[f][0],ObjCoords[f][1],ObjCoords[f][2]-1,93.7,120.0,120.0);
}
}
return 1;
}