basically iv got a warning script in a weapon and it doesnt work.. for what reason i dont know. could someone who is far more advanced at scripting please take a look at it?
Thanks
-Gunderak
//#CLIENTSIDE
function onPlayerChats() {
if (!player.chat.starts("/warn")) return; // If it doesn't start with '/warn' do nothing
temp.pl = findplayer(player.chat.substring(6)); // Find the player that needs a warning
if (temp.pl == null) { // If the player isn't found
player.chat = "Couldnt Find " @ player.chat.substring(6) @ "";
}
else {
temp.pl.setlevel2("warning_room.nw", 10, 10);
temp.pl.say2("You've been warned!!!");
}
}
__________________
Gund for president.
Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion