Quote:
Originally Posted by cbk1994
Both of them contain pieces of what you're looking for. Where are you stuck? Post your code so far.
|
This is the involved parts - not the full script. This is the last attempt I made at trying to do this..
PHP Code:
function onActionServerside(){
if(params[0] == "rankchanger"){
temp.pl = findplayerbycommunityname(params[1]);
if (pl != NULL){
rank = pl.clientr.gangrank;
rights = pl.clientr.gangrights;
}
}
else{
player.chat = "Player not found.";
}
}
//#CLIENTSIDE
function onCreated() {
new GuiTextEditCtrl("account1") {
profile = GuiBlueTextEditProfile;
height = 20;
width = 120;
x = 70;
y = 40;
}
new GuiTextEditCtrl("rank1") {
profile = GuiBlueTextEditProfile;
height = 20;
width = 120;
x = 70;
y = 70;
}
new GuiTextEditCtrl("rights1") {
profile = GuiBlueTextEditProfile;
height = 20;
width = 30;
x = 94;
y = 96;
}
function UpdateButton.onAction() {
temp.rank = rank1.txt;
temp.rights = rights1.txt;
triggerserver("gui",this.name,"rankchanger",account1.text,temp.rank,temp.rights);
}