Score Command

Started by W3aPoN^, Jul 23, 2016, 01:47 PM

Previous topic - Next topic

W3aPoN^

I Need A Command That Will Show A Player Killing Score Something Like That

when a player types /score then a error message appear about RIGHT command like this one /score <playername>
when player use right command then a message will come about what is the Other player Killing Score (How Many He Killed Players)

THANKS IN ADVANCE

KAKAN

function onPlayerCommand( player, cmd, text )
{
if( cmd == "score" )
{
if( !text ) return MessagePlayer("Wrong syntax. Use /score <playerName>",player);
local plr = FindPlayer( text );
if( !plr ) return MessagePlayer("Invalid player.",player);
else MessagePlayer( plr + "'s score: " + plr.Score );
}
}
Just an example, don't expect me to code for you all the time. Now, you know the functions, so, try using them before asking.
oh no