gouster 0 Odesláno: 17. Duben, 2012 Share Odesláno: 17. Duben, 2012 Ahojte . potreboval by som zistit adminlevel zo suboru if Alvl>0... { funkcia } v scriptfiles je subor playername.dudb.sav (playername je individualne, kazdy ma ine) a ziti ci je adminlvl=.. ak nieje v texte adminlvl= tak sa funkcia nespusti. ak je adminlvl=1/2/3/4/5/9999 tak ho spusti, inak nie. nevie mi niekto poradit ako spravit to if.... a to new..... ja to neviem. :mrgreen: "confused" Link to comment Share on other sites More sharing options...
0 Guest Odesláno: 17. Duben, 2012 Share Odesláno: 17. Duben, 2012 už si to sem dával,jak to chceš přečíst z rze ,když nemáš pwn ? Link to comment Share on other sites More sharing options...
0 gouster 0 Odesláno: 17. Duben, 2012 Author Share Odesláno: 17. Duben, 2012 public OnPlayerText(playerid, text[]) { new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); new Premenna1[145]; new Premenna2[145]; format(Premenna1, 145,"%s.dudb.sav",name); format(Premenna2, 145,"%s", dini_Get(Premenna1, "adminlvl")); format(stringy,sizeof(stringy),"{0000FF}Admin:{FFFF00} %s",text); SendClientMessageToAll(COLOR_YELLOW,stringy); SendClientMessageToAll(COLOR_YELLOW,Premenna2); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/serverinfo", true)) { SendClientMessage(playerid, 0xFFFFFFFF, "/music /vozidlo /speed /tune /neon /vip /garroz /ironman"); GivePlayerMoney(playerid, 20); return 1; } if(!strcmp(cmdtext, "/say", true)) { new Premenna3[145]; format(Premenna3, 145,"%s",cmdtext); SendClientMessageToAll(COLOR_BLUE,Premenna3); return 1; } return 0; } to /say , ked dam "/say JA" tak nejde, ide iba /say. aj to napise do SCMTA /say a neveim ako urobit if Premenna2 >/= 1 ak je "Premenna2" väčšia alebo rovná 1 tak { PRIKAZ } nevie niekto ako na to? Link to comment Share on other sites More sharing options...
Dotaz
gouster 0
Ahojte .
potreboval by som zistit adminlevel zo suboru
if Alvl>0... {
funkcia
}
v scriptfiles
je subor playername.dudb.sav (playername je individualne, kazdy ma ine)
a ziti ci je adminlvl=..
ak nieje v texte adminlvl=
tak sa funkcia nespusti.
ak je adminlvl=1/2/3/4/5/9999
tak ho spusti, inak nie.
nevie mi niekto poradit ako spravit to if.... a to new.....
ja to neviem. :mrgreen: "confused"
Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now