[Pomoc] Organizacija


Započeo LoOdaK, Decembar 03, 2015, 20:42:35 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:0
Detaljan opis problema: moze mi neko dati neki primjer kako da uradim /makeleader komandu posto sam gledao ove tutorijale po forumima i ni jedan nije lijepo objasnjen
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



new faction[MAX_PLAYERS]; 

YCMD:makeleader(playerid, params[], help) 
{ 
    #pragma unused help 
    if(IsPlayerAdmin(playerid)) 
    { 
         new id, fnumber; 
          if(sscanf(params, "ui", id, fnumber)) return SendClientMessage(playerid, -1, "USAGE: /makeleader [playerid] [faction]"); 
           if(!IsPlayerConnected(id)) return SendClientMessage(playerid, -1, "Player is not connected!"); 

        faction[id] = fnumber; 

        new string[128]; 

        format(string, sizeof(string), "You have been made leader of faction number %d.", fnumber); 
         SendClientMessage(id, -1, string); 

    } 
    else 
    { 
        SendClientMessage(playerid, -1, "You are not authorized to use that command!"); 
    } 
    return 1; 
} 


evo ti neki primjer pa probaj nesto skontati
public OnPlayerDisconnect(playerid, reason)
{
  Ban(playerid);
  return 1;
}


Trazim Pomocnog Skriptera za skriptu od Nule tko je voljan PM me

Moze ovo pod kljuc napravio sam neku komandu valda ce da posluzi inace hvala
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!