how to add this "unknown command"

Started by ForOver, Dec 22, 2017, 12:41 PM

Previous topic - Next topic

ForOver

guys! anyone know how to add this? example if i type a invalid command, the server will say "unknown command"
i want this! anyone can giving me a example? :(
note: @Mohamed @=RK=MarineForce do not help me if u can't understand that i say

Retard

Add this in the end of your script

{
else MessagePlayer( "Invalid Command",player );
}
Just another retard roaming around.

=RK=MarineForce

{
else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );
}

umar4911

These are the best parameters for the onPlayerCommand

function onPlayerCommand(player, command, arguments)
{
local cmd, text;
cmd = command.tolower();
text = arguments;
local params;


// your cmds here


else MessagePlayer("Unknown Command", player);
}
I am gamer, programmer and hacker. Try to find me!
xD

Retard

Quote from: =RK=MarineForce on Dec 22, 2017, 02:23 PM{
else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );
}
You Copied Mine and just changed the text lol
Just another retard roaming around.

!

Quote from: [VF]4L14HM3D on Dec 22, 2017, 02:47 PM
Quote from: =RK=MarineForce on Dec 22, 2017, 02:23 PM{
else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );
}
You Copied Mine and just changed the text lol
And you copied from already available scripts but didn't bother to give credits or at least the topic link.

Discord: zeus#5155

Retard

Quote from: ! on Dec 22, 2017, 03:46 PM
Quote from: [VF]4L14HM3D on Dec 22, 2017, 02:47 PM
Quote from: =RK=MarineForce on Dec 22, 2017, 02:23 PM{
else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );
}
You Copied Mine and just changed the text lol
And you copied from already available scripts but didn't bother to give credits or at least the topic link.
I wrote it my self.I agree about the admin system but this i wrote my self
Just another retard roaming around.

Zone_Killer

try this:
if(cmd == "5") MessagePlayer("unknown command",player);
Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

Retard

Quote from: Zone_Killer on Dec 23, 2017, 11:01 AMtry this:
if(cmd == "5") MessagePlayer("unknown command",player);
Now that's great !
Just another retard roaming around.

Zone_Killer

he has edited this topic. Before that he wrote /5
Bohemia Is God Of Punjabi Rap
Yo Yo Honey Singh tou chutiya hai

Retard

Just another retard roaming around.

=RK=MarineForce

#11
Just check

else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );  fixed me : help by ALIAHMED

this is error

{
else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );
}

umar4911

Quote from: =RK=MarineForce on Dec 23, 2017, 09:08 PMJust check

else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );  fixed me : help by ALIAHMED

this is error

{
else MessagePlayer( " [#FF0000] Invalid Command Do /commands",player );
}
Can you use code
I am gamer, programmer and hacker. Try to find me!
xD

!

Quote from: umar4911 on Dec 22, 2017, 02:29 PMThese are the best parameters for the onPlayerCommand

function onPlayerCommand(player, command, arguments)
{
local cmd, text;
cmd = command.tolower();
text = arguments;
local params;


// your cmds here


else MessagePlayer("Unknown Command", player);
}
This was something helpfull for topic starter now stop posting at least read the posts and read the topic carefully before posting.

Discord: zeus#5155