There is no serverside verification before it sets the tag.
That is probably a bit above your skill level at the moment, but I'm gonna go ahead and recommend you read up on it. If you need some examples I'd be happy to help.
There is no serverside verification before it sets the tag.
That is probably a bit above your skill level at the moment, but I'm gonna go ahead and recommend you read up on it. If you need some examples I'd be happy to help.
I am not too good at coding, but I'll give it a try:
//#CLIENTSIDE
function onCreated () {
if (clientr.staff == 1 && player.chat == /et)
player.guild = Events Team
player.setlevel2 ("Event Level Name Here.nw");
}else{
player.chat == "I'm not a staff member!"
}
}
Last edited by iMask; 06-04-2014 at 02:39 PM.
You're missing curly brackets, quotations, semi colons and styling. You have the incorrect function as it should be onPlayerChats().
I saw. I conquered. I came.
This also requires the staff member to have clientr.isStaff in their player attributes flags.PHP Code:
//#CLIENTSIDE
function onPlayerChats(){
if (clientr.isStaff){
if (player.chat == "/et"){
player.guild = "Events Team";
player.ap += 100;
}
}
}
Oh - I didn't test this - I'm about to test it now.
Hello!
Using any of these snippets in a weapon (created from rc) will not work because they're clientside. Either put it in a level or use serverside