Author Topic: Client Sided Stuff  (Read 769 times)

Is it possible to make a Client that has a GUI that can change player datablocks, give items, etc?

Yes, by making a server-sided part too and having the gui communicate with it

Stop making so many topics

Yes, by making a server-sided part too and having the gui communicate with it

Stop making so many topics

Crap.



and sorry. can you check back on my latest post on my other topic and answer me?

---Client stuff
clientcmdclearDatablocks()
{
     deleteVariables("$data*"); //remove all datablock variables in place
     $datalists = 0; //set placemarker to 0
}
clientcmdsendDatablock(%data)
{
     $data[mFloor($datalists)] = %data; //adding datablocks to a list
     $datalists++; //increment placer
}

---Server stuff
servercmdRequestData(%cl)
{
     //get all Armor datablocks and
     commandtoclient(%cl,'sendDatablock',%datavariable); //Tell the client to receive a datablock
}
servercmdChangeData(%cl,%armor)
{
     if(!isObject(%cl.player) || !%cl.player.isAdmin) //check if a player exists or a player is not admin
          return; //stop
     %cl.player.setDatablock(%armor); //set the player's datablock
}

you will have to do some things to make this functional, and I don't expect you to use exactly this