[pomoc]rat

Započeo Street, Septembar 03, 2011, 17:43:04 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Noxicus
Detaljan opis problema: Imam /war komandu. Kada ju pokrenem svi clanovi xyz org se spawnaju na mjestu wara. Ja zelim napravit komandu da prozovem neke igrace na war... Ali ne znam jer sam novi u svemu :S
Dio skripte: evo komanda war

CMD:war(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] >= 2)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /war [tim1] [tim2] [vrijeme(minute)]");

}
}
else
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
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), "WAR | Pokrenuo Admin: %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), "WAR | Pokrenuo Admin: %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;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Septembar 03, 2011, 17:46:26 POSLE PODNE od Street

Citat: Street poslato Septembar 03, 2011, 17:43:04 POSLE PODNE
Skripta koju koristim: Noxicus
Detaljan opis problema: Imam /war komandu. Kada ju pokrenem svi clanovi xyz org se spawnaju na mjestu wara. Ja zelim napravit komandu da prozovem neke igrace na war... Ali ne znam jer sam novi u svemu :S
Dio skripte: evo komanda war

CMD:war(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] >= 2)
{
SCM(playerid, COLOR_GRAD3,"{168BFF}INFO: {959561} /war [tim1] [tim2] [vrijeme(minute)]");

}
}
else
{
if(PlayerInfo[playerid][pAdmin] >= 2)
{
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), "WAR | Pokrenuo Admin: %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), "WAR | Pokrenuo Admin: %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;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Ja sam taman mislio otvoriti temu u vezi ovoga:
Kako napraviti od te komande strcmp komandu? et to meni treba
Usput imas slican nick kao ja  8)
Poslednja Izmena: Septembar 03, 2011, 18:08:36 POSLE PODNE od Ante_Street
Trazim "Profesionalnog Skriptera" da mi napravi jednu stvar,cijena nebitna nek mi se javi na pm....trazim lika koji zna raditi ne nekog pocetnika

ma meni treba komanda da admin pozove odredjenog igraca na war i da igraju samo pozvani... ali ne znam kako :S

Da to i meni treba.. samo meni treba /wapozovi ID igraca i /warizbaci ID igraca al da lideri to mogu ne admini!

meni treba samo za pozvat igraca na war i to je to