what is wrong with this cmd???
else if(cmd == "killplayer")
{
if ( pstats[ player.ID ].Level < 10 ) return MessagePlayer( "[#ff0000][INFO][#ffffff] You Are Not Authorized To use This Command.", player);
else if ( !text ) return Message( "Usage: /"+cmd+" <player>" , player );
}
else
{
local plr = FindPlayer( text )
if ( plr )
plr.Health = 0
}
here the fixed command:
else if(cmd == "killplayer")
{
if ( pstats[ player.ID ].Level < 10 ) return MessagePlayer( "[#ff0000][INFO][#ffffff] You Are Not Authorized To use This Command.", player);
else if ( !text ) return Message( "Usage: /"+cmd+" <player>" , player );
{
else
{
local plr = FindPlayer( text )
if ( plr )
plr.Health = 0
}
}
}
didnt worked bro :(
Try it:-( UnTested )
else if(cmd == "killplayer")
{
if ( pstats[ player.ID ].Level < 10 ) MessagePlayer( "[#ff0000][INFO][#ffffff] You Are Not Authorized To use This Command.", player);
else if ( !text ) MessagePlayer("/killplayer <Player>",player);
else {
local plr = FindPlayer(text);
if ( !plr ) MessagePlayer("Invalid Player",player);
else {
Message("Admin " +player.Name+ " Has Killed " +plr.Name+ "");
plr.Health = 0;
}
}
}
Update: Tested.
didnt worked too sorry :(
Quote from: ahmedzead on Jan 16, 2018, 09:06 AMdidnt worked too sorry :(
You Are Using Account System Fuzzie Right ?
yes bro
Quote from: Mohamed on Jan 15, 2018, 07:16 PMTry it:-( UnTested )
else if(cmd == "killplayer")
{
if ( pstats[ player.ID ].Level < 10 ) MessagePlayer( "[#ff0000][INFO][#ffffff] You Are Not Authorized To use This Command.", player);
else if ( !text ) MessagePlayer("/killplayer <Player>",player);
else {
local plr = FindPlayer(text);
if ( !plr ) MessagePlayer("Invalid Player",player);
else {
Message("Admin " +player.Name+ " Has Killed " +plr.Name+ "");
plr.Health = 0;
}
}
}
Update: Tested.
Mean i Have Tested That & its Working ???
it worked now thx guys :)
untested
Try it
else if ( cmd == "kill")
{
local plr = FindPlayer( text);
if (!plr) MessagePlayer(" " + text + " is offline ", player);
if (!text) MessagePlayer(" kill [ID/NICK] ", player);
else{
plr.Health == 0;
Message(" Admin " + player.Name + " is killed " + plr.Name " + ")
}
}
@=RK=MarineForce, Thi its Already Solved, What u Mean ???
Quote from: ahmedzead on Jan 16, 2018, 09:23 AMit worked now thx guys :)
LOL xd sorry