[POMOC]War

Započeo Capo, April 02, 2013, 17:29:49 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:CLRP
Detaljan opis problema:Znaci vako, pokrenem war i sad igram LCN VS Y ... i kad ja nekog ubijem on se spavna opet i ima pola heltha i nema oruzije, pa ako mi mozete pomoc, kako da sad on se stvori i da ima pun helth i ovo oruzije, i da se pomjeri rezultat,
I bilo bi dobro kad bi se moglo prozvat za war, admin ih prozove u koji tim i to je to .. :D dat cu vam komandu za pokreni war :D
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

CMD:zapocnirat(playerid, params[])
{
new tim1,tim2,vrijemez, string[128];
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(sscanf(params, "ddd", tim1, tim2, vrijemez))
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
SCM(playerid, COLOR_GRAD3,""svpl"Koristenje:{FFFFFF} /zapocnirat [tim1] [tim2] [vreme(minuti)]");
SCM(playerid, WHITE, "{FF0000}Dostupno: {FFFF80}5 - Yakuza | 6- L.C.N ");
}
}
else
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
foreach (Player, i)
{
if(PlayerInfo[i][pMember] == tim1 || PlayerInfo[i][pLeader] == tim1)
{
SetPVarInt(i, "Ratuje", 1); SetPVarInt(i, "Tim1", 1);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
format(string, sizeof(string), "{FF0000}RAT| Pokrenuo Admin: {FFFF80}%s", sendername);SCM(i, WHITE, string);
ratnitext1 = CreatePlayer3DTextLabel(i,"{0080C0}Plavi {808080}Tim",0x46A3FFFF,fa,fy,fu,40.0, i);
SetPlayerInterior(i, 15);
new rande = random(sizeof(RandomArenaSpawnsTim1));
SetPlayerPos(i, RandomArenaSpawnsTim1[rande][0], RandomArenaSpawnsTim1[rande][1], RandomArenaSpawnsTim1[rande][2]);
GivePlayerWeapon(i, 4, 2);GivePlayerWeapon(i, 18, 50);GivePlayerWeapon(i, 24, 120);GivePlayerWeapon(i, 25, 120);GivePlayerWeapon(i, 29, 200);
GivePlayerWeapon(i, 33, 100);RatnoVrijeme = vrijemez*60;TextDrawShowForPlayer(i, crvenitim);plavitimkills= 0; crvenitimkills = 0;
TextDrawShowForPlayer(i, plavitim);
TextDrawShowForPlayer(i, ratnaz);
TextDrawShowForPlayer(i, preostalovrijeme);
}
  if(PlayerInfo[i][pMember] == tim2 ||PlayerInfo[i][pLeader] == tim2)
{
SetPVarInt(i, "Ratuje", 1); SetPVarInt(i, "Tim2", 1);
SetPlayerInterior(i, 15);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );format(string, sizeof(string), "{FF0000}RAT| Pokrenuo Admin: {FFFF80}%s", sendername);SCM(i, WHITE, string);
ratnitext2 = CreatePlayer3DTextLabel(i,"{FF4141}Crveni {808080}Tim",0xFF5E5EFF,fa,fy,fu,40.0, i);plavitimkills= 0; crvenitimkills = 0;
new rande = random(sizeof(RandomArenaSpawnsTim2));
RatnoVrijeme = vrijemez *60;
SetPlayerPos(i, RandomArenaSpawnsTim2[rande][0], RandomArenaSpawnsTim2[rande][1], RandomArenaSpawnsTim2[rande][2]);
GivePlayerWeapon(i, 4, 2);GivePlayerWeapon(i, 18, 50);GivePlayerWeapon(i, 24, 120);GivePlayerWeapon(i, 25, 120);GivePlayerWeapon(i, 29, 200);
GivePlayerWeapon(i, 33, 100);
TextDrawShowForPlayer(i, crvenitim);
TextDrawShowForPlayer(i, plavitim);
TextDrawShowForPlayer(i, ratnaz);
TextDrawShowForPlayer(i, preostalovrijeme);
}
}
}
}
return 1;
}


ILI ako netko ima FS za war, bilo bi takodjer dobro :D

Evo ja se bas nekuzim u to al ako je ovo :

if(GetPVarInt(i, "Ratuje") == 1 && RatnoVrijeme != 0)
{

format(string, sizeof(string), "~g~Preostalo vrijeme:~b~%d sec", RatnoVrijeme);
TextDrawSetString(preostalovrijeme,string);
format(string, sizeof(string), "~r~Crveni tim:~b~%d", crvenitimkills);
TextDrawSetString(crvenitim, string);
format(string, sizeof(string), "~r~Plavi tim:~b~%d", plavitimkills);
TextDrawSetString(plavitim, string);
}
if(GetPVarInt(i, "Ratuje") == 1 && RatnoVrijeme <= 0)
{
DeletePlayer3DTextLabel(i, ratnitext1);DeletePlayer3DTextLabel(i, ratnitext2);SetPVarInt(i, "Tim1", 0);SetPVarInt(i, "Tim2", 0);
SetPVarInt(i, "Ratuje", 0); ResetPlayerWeapons(i); SpawnPlayer(i); TextDrawHideForPlayer(i, ratnaz);
TextDrawHideForPlayer(i, preostalovrijeme);TextDrawHideForPlayer(i, crvenitim);TextDrawHideForPlayer(i, plavitim);
}


Evo ti sam naso :D
Vald je to to :D

public OnPlayerSpawn(playerid)
{
//TextDrawHideForPlayer(playerid, tech);
    //TextDrawHideForPlayer(playerid, dobro);
    TextDrawShowForPlayer(playerid, poruke);
    StopAudioStreamForPlayer(playerid)
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid,0);

    if(!gPlayerAnimLibsPreloaded[playerid])
{
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
PreloadAnimLib(playerid,"CRACK");
PreloadAnimLib(playerid,"CARRY");
PreloadAnimLib(playerid,"COP_AMBIENT");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"INT_HOUSE");
PreloadAnimLib(playerid,"FOOD");
PreloadAnimLib(playerid,"PED");
PreloadAnimLib(playerid,"MISC");
PreloadAnimLib(playerid,"BLOWJOBZ");
PreloadAnimLib(playerid,"RIFLE");
PreloadAnimLib(playerid,"UZI");
PreloadAnimLib(playerid,"SHOTGUN");
PreloadAnimLib(playerid,"COLT45");
PreloadAnimLib(playerid,"SILENCED");
PreloadAnimLib(playerid,"GYMNASIUM");
PreloadAnimLib(playerid,"PARK");
PreloadAnimLib(playerid,"BSKTBALL");
PreloadAnimLib(playerid,"GANGS");
PreloadAnimLib(playerid,"FIGHT_D");
PreloadAnimLib(playerid,"PAULNMAC");
gPlayerAnimLibsPreloaded[playerid] = 1;
}
   
InitLockDoors(playerid);
STDPlayer[playerid] = 0;
gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
if (gTeam[playerid] == 4) //medic / criminal reset team
{
gTeam[playerid] = 3;
}
if(gPlayerLogged[playerid] == 0 && IsPlayerNPC(playerid) != 1)
{
    SendClientMessage(playerid, WHITE, "{FFFFFF}** Ovaj server zahtjeva prvo da se prijavite prije spawnanja ("COL_RED"Kikovan{FFFFFF}) **");
        KickPlayer[playerid] = 1;
}
if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
{
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
SendClientMessage(playerid, WHITE, "{FFFFFF} Niste prihvaceni "COL_RED"Lider{FFFFFF}, sada ste civil!");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 5)
{
    if(PlayerInfo[playerid][pMember] < 1)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, WHITE, "{FFFFFF} Niste clan organizacije, sada ste "COL_RED"civil!");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 10)
{
    if(PlayerInfo[playerid][pMember] != 8)
    {
        MedicBill[playerid] = 0;
        new rand = random(sizeof(CIV));
SendClientMessage(playerid, WHITE, "{FFFFFF} Niste clan ove agencije, sada ste "COL_RED"civil!");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
            SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
}
if(gTeam[playerid] == 2 && PlayerInfo[playerid][pMember] > 3)
{
    MedicBill[playerid] = 0;
new rand = random(sizeof(CIV));
SendClientMessage(playerid, WHITE, "{FFFFFF} Niste se prijavili za clana "COL_RED"Drzavne Agencije!");
PlayerInfo[playerid][pTeam] = 3;
gTeam[playerid] = 3;
SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
PlayerInfo[playerid][pModel] = CIV[rand];
SpawnPlayer(playerid);
}
if(gTeam[playerid] == 3)
{
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
SendClientMessage(playerid, WHITE, "{FFFFFF} Niste clan organizacije premjesteni ste na odgovarajucu "COL_RED"Klasu + Skin!");
MedicBill[playerid] = 0;
new model = PlayerInfo[playerid][pChar];
if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model;}
else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model;}
else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model;}
else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
else if(PlayerInfo[playerid][pLeader] == 17) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
SpawnPlayer(playerid);
}
}
if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
SetPlayerSpawn(playerid);
SetPlayerWeapons(playerid);
SetPlayerToTeamColor(playerid);
PlayerFixRadio(playerid);

for(new i = 0; i < sizeof(Turfs); i++)
{
GangZoneShowForPlayer(playerid, i, TurfInfo[i][zColor]);
    GangZoneShowForPlayer(playerid, crips, 0x2641FEAA);
GangZoneShowForPlayer(playerid, bloods, 0xAA3333AA);

if(gangzona[gzona1] == 0)
{
GangZoneShowForPlayer(playerid,zona1, 0xC0C0C096);
}
else if(gangzona[gzona1] == 1)
{
GangZoneShowForPlayer(playerid,zona1, 0x2641FEAA);
}
else if(gangzona[gzona1] == 2)
{
GangZoneShowForPlayer(playerid, zona1, 0xAA3333AA);
}
if(gangzona[gzona2] == 0)
{
GangZoneShowForPlayer(playerid,zona2, 0xC0C0C096);
}
else if(gangzona[gzona2] == 1)
{
GangZoneShowForPlayer(playerid,zona2, 0x2641FEAA);
}
else if(gangzona[gzona2] == 2)
{
GangZoneShowForPlayer(playerid, zona2, 0xAA3333AA);
}
if(gangzona[gzona3] == 0)
{
GangZoneShowForPlayer(playerid,zona3, 0xC0C0C096);
}
else if(gangzona[gzona3] == 1)
{
GangZoneShowForPlayer(playerid,zona3, 0x2641FEAA);
}
else if(gangzona[gzona3] == 2)
{
GangZoneShowForPlayer(playerid, zona3, 0xAA3333AA);
}
if(gangzona[gzona4] == 0)
{
GangZoneShowForPlayer(playerid,zona4, 0xC0C0C096);
}
else if(gangzona[gzona4] == 1)
{
GangZoneShowForPlayer(playerid,zona4, 0x2641FEAA);
}
else if(gangzona[gzona4] == 2)
{
GangZoneShowForPlayer(playerid, zona4, 0xAA3333AA);
}
if(gangzona[gzona5] == 0)
{
GangZoneShowForPlayer(playerid,zona5, 0xC0C0C096);
}
else if(gangzona[gzona5] == 1)
{
GangZoneShowForPlayer(playerid,zona5, 0x2641FEAA);
}
else if(gangzona[gzona5] == 2)
{
GangZoneShowForPlayer(playerid, zona5, 0xAA3333AA);
}
if(gangzona[gzona6] == 0)
{
GangZoneShowForPlayer(playerid,zona6, 0xC0C0C096);
}
else if(gangzona[gzona6] == 1)
{
GangZoneShowForPlayer(playerid,zona6, 0x2641FEAA);
}
else if(gangzona[gzona6] == 2)
{
GangZoneShowForPlayer(playerid, zona6, 0xAA3333AA);
}
        return 1;
}

if(MapIconsShown[playerid] != 1)
{
    MapIconsShown[playerid] = 1;
    for(new i = 0; i < sizeof(BizzInfo); i++)
{
SetPlayerMapIcon(playerid,i + 1,BizzInfo[i][bEntranceX],BizzInfo[i][bEntranceY],BizzInfo[i][bEntranceZ],56,YELLOW);
}
for(new i = 0; i < sizeof(SBizzInfo); i++)
{
    SetPlayerMapIcon(playerid,i + 20,SBizzInfo[i][sbEntranceX],SBizzInfo[i][sbEntranceY],SBizzInfo[i][sbEntranceZ],56,COLOR_ZELENKASTA);
}
}
return 1;
}