Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:napraviorg(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return SCM(playerid,COLOR_RED,"Greska:{FFFFFF} Nemas ovlascenje!");
- if(editaorg[playerid] != -1) return SCM(playerid, COLOR_RED,"Greska:{FFFFFF} Vec pravis/editujes organizaciju");
- new Float:X,Float:Y, Float:Z, i = NewOrg(MAX_ORGS), nikostring[128];
- format(nikostring, sizeof(nikostring), "Niko");
- editaorg[playerid] = 1;
- OrgInfo[i][orgLider] = nikostring;
- OrgInfo[i][orgClan1] = nikostring;
- OrgInfo[i][orgClan2] = nikostring;
- OrgInfo[i][orgSefDroga] = 2;
- OrgInfo[i][orgSefNovac] = 5;
- GetPlayerPos(playerid, X,Y,Z);
- OrgInfo[i][orgX] = X;
- OrgInfo[i][orgY] = Y;
- OrgInfo[i][orgZ] = Z;
- orgPickup[i] = CreatePickup(19132,i,X,Y,Z);
- ShowPlayerDialog(playerid, DIALOG_ORGIME, DIALOG_STYLE_INPUT, "{95b4a2}Kreiranje organizacije | {FFFFFF}Ime", "Unesite ime organizacije:", "Potvrdi", "Odustani");
- return 1;
- }
Add Comment
Please, Sign In to add comment