This PR Tag is only if necessary like if you can't put your PR Tag on.
Remote Control Use Only!PHP Code:
//#CLIENTSIDE
function OnPlayerChats () {
if (player.chat == "/pr"){
set.guild="Player Relations";
}
}
Printable View
This PR Tag is only if necessary like if you can't put your PR Tag on.
Remote Control Use Only!PHP Code:
//#CLIENTSIDE
function OnPlayerChats () {
if (player.chat == "/pr"){
set.guild="Player Relations";
}
}
Hypothetically, that would make any player who said that have a PR tag.
No this is only for Remote Control use.
GraalEditor ugh to much work.
U is admin??
Setting your Player Relations tag is not that necessary while duty.
1. This can be used as a weapon on Remote Control
2. It is not used in a level
3. It is player.guild not set.guild
4. I don't understand how you can script partially, but don't even know what Remote Control is...
5. This one I made works like a charm.
Code:// Scripted by JohnRaven (SFR)
function onActionServerSide() {
switch (params[0]){
case "/pr":
player.guild = params[1];
break;
}
}
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/pr")){
player.guild == "Player Relations"
}
If the case and switch is too complex for you, here's another one that works:
EDIT:PHP Code:
findplayer ("id").addWeapon(this.name);
function onActionServerSide () {
player.guild = "Player Relations";
player.ap = 100;
}
//#CLIENTSIDE
function onPlayerChats () {
if (player.chat == "/pr") {
triggerserver ("gui", this.name, "");
}
}
This shouldn't work.
1. player.guild is a serverside command, you can't set it in clientside
2. Pay close attention to your equal signs.
should be:PHP Code:
player.guild == "Player Relations";
One equal sign means that you are making it equal to that. Two equal signs means you are checking to see if something is true.PHP Code:
player.guild = "Player Relations";
3.
should bePHP Code:
if (player.chat.starts("/pr")){
PHP Code:
if (player.chat.starts == "/pr") {
Looking through you're progress now, and I suggest that you stick to using strictly clientside, it is good that you are going ahead and exploring trigger server. But if you're making some mistakes with the regular syntax you might not be ready to take the next step. Im not being a dream crusher but this is my opinion.
You should try making a loop, a for loop and than have theequal to the variable you've created in the loop.PHP Code:
player.chat
For loop Reminder,
If you can do this with no errors than you are ready, Do not forget the //#CLIENTSIDE either and the for loop must go inside the onCreated().PHP Code:
for(this.i = 100; this.i > 0; this.i--) {
//print to the players chat
}
Good Luck,
Feel free to ignore this as you please.