function onPlayerCommand( player, cmd, text )
{
	if( cmd == "lol" )
	{
	Message( "[#DC143C]" + player.Name + "is Laughing out Loud" );
	}
	else if( cmd == "lmao" )
	{
	Message( "[#DC143C]" + player.Name + " is Laughing his ass out" );
	}
	else if( cmd == "cmds" )
	{
	MessagePlayer( "The commands are under construction.The available commands are /lol /lmao /saveloc /gotoloc /alllocs /egypt /cwep /disarm /anim /topkillers /server /hunter /huntercd /hunterinfo", player );
	}
	else if ( cmd == "saveloc" )
	{
	if (PlayerIsAdmin(player))
	if ( !text ) MessagePlayer( "[#00CC00][ERROR]: [#ffffff]/saveloc [Location]", player );
	else if ( !player.IsSpawned ) MessagePlayer( "[#00CC00][ERROR]: [#ffffff]You are not spawned!", player );
        else if ( FindLoc( text ) ) MessagePlayer( "[#00CC00][ERROR]: [#ffffff]Location name in use!", player );
        else
        {
	QuerySQL( db, "INSERT INTO Gotoloc (Name, x, y, z, Creator) values ( '" + text + "', '" + player.Pos.x + "', '" + player.Pos.y + "', '" + player.Pos.z + "', '" + player.Name + "' )" );
        MessagePlayer( "[#00CC00][LOC]: [#FFFFFF]Location: " + text + " Saved!", player );                                       
        }         
	}
	
	else if ( cmd == "gotoloc" )
        {          
	if ( !text ) MessagePlayer( "[#00CC00][ERROR]: [#ffffff]/gotoloc [Location]", player );
	else if ( !player.IsSpawned ) MessagePlayer( "[#00CC00][ERROR]: [#ffffff]You are not spawned!", player );
	else
        {
	local q = QuerySQL( db, "SELECT x, y, z, Creator FROM Gotoloc WHERE Name = '"+ text +"'" );
	if ( q )
	{
	local x = GetSQLColumnData( q, 0 ), y = GetSQLColumnData( q, 1 ), z =GetSQLColumnData( q, 2 ), Creator = GetSQLColumnData( q, 3 );
	player.Pos = Vector( x, y, z );
	}
	else MessagePlayer("[#00CC00][ERROR]: [#ffffff]Invalid location!", player);
	if( q != null ) FreeSQLQuery( q );
        }
	return 1;
        }
	else if( cmd == "alllocs" || cmd == "locs" || cmd == "getlocs" )
	{
	local listQuery = QuerySQL( db, "SELECT * FROM `Gotoloc`" );
	local count = 0;
	while ( GetSQLNextRow( listQuery ) ) {
	count++;
	MessagePlayer( "[#00CC00][LOC#" + count + "]: [#FFFFFF]" + GetSQLColumnData( listQuery, 0 ), player );
	}
	FreeSQLQuery( listQuery );
	if( count == 0 ) return MessagePlayer( "[#00CC00][ERROR]: [#FFFFFF]No locations to list!", player );
	}
	if ( cmd == "kick" )
	{
	if (PlayerIsAdmin(player))
	{
	if ( text )
	{
	local plr = FindPlayer( text );
	if ( plr )
	{
	KickPlayer( plr );
	}
	else MessagePlayer( "Cannot find player "+text+"." , player );
	}
	else MessagePlayer( "Usage: /"+cmd+" <player>" , player );
	}
	else MessagePlayer( "You are not allowed to use this command." , player )
	}
	if ( cmd == "ban" )
        {
	if (PlayerIsAdmin(player))
        if ( !text ) 
        {
        MessagePlayer( "[Syntax] - /ban <Nick/ID> <Reason>", player );
        }
        else 
        {
        local params = split( text, " " ), plr = FindPlayer( params[0] ), reason = params[1]; 
        Message( "[#EE82EE]** Admin " + player.Name + " Banned " + plr.Name + " Reason: " + reason );
        MessagePlayer( " You have been banned. Reason: " + reason + " by: " + player.Name , plr );
        BanPlayer( plr );
        }
	{
        return 1;
        }
	}
	else if ( cmd == "disarm" )
	{
	PrivMessage( player, "You've been disarmed"); 
	player.Disarm();
	}
	else if ( cmd == "script" )
	{
	MessagePlayer( "This server is scripted by [VF]4L14HM3D" , player );
	}
	else if ( cmd == "server" )
	{
	if( !text ) return MessagePlayer( "[#00CC00][ERROR]: [#ffffff]Type /server <1-3>", player );
	{
	if (text == "1" )
	MessagePlayer( "This Server is Scripted by " + SCRIPTER , player );
	else if (text == "2" )
	MessagePlayer( "The Main admins are S4F1U!!4H and [VF]4L14HM3D" , player );
	else if (text == "3" )
	MessagePlayer( "The Name of the server is Vice City wars.The Gamemode is VCW V1.5" , player );
	}
	}
	else if(cmd == "et")
	{
	player.Pos = Vector(338.6310, -237.6571, -29.1708);
	MessagePlayer( "[#ffbb00]*** Welcome to Egypt.Enjoy the Wonders***", player ); 
	}  
else if(cmd == "anim")
 {
  if(!text) 
  {
   MessagePlayer("[#6666FF]Anims' list: [#FFFF81](/a) stop, watcha, lean, talk, wave, die^, fall^, fallback^, :o, apply, bu!, arg^, carwback, wback, elbow^, rollback, boss, crawling, rollinfront, falling, roll, beware, idk, look, dumb, aim^, drown, handsup, wut, fu, phone, sit, stand, sell, hm?, onfoot, db^, heal, lay, bored, riot, dance, drunk",player);
   MessagePlayer("[#6666FF]READ ME -> The symbol ^ means the anim has more options. Example: /a dance, /a dance 2, /a dance 3.",player);
  }
  else
  {
   switch(text)
   {
    case "stop":
     player.SetAnim(0,29);
     break;
    case "watcha":
     player.SetAnim(0,7);
     break;
    case "lean":
     player.SetAnim(0,9);
     break;
    case "talk":
     player.SetAnim(0,11);
     break;
    case "wave":
     player.SetAnim(0,12);
     break;
    case "die":
     player.SetAnim(0,17);
     break;
    case "die 2":
     player.SetAnim(0,13);
     break;
    case "fall":
     player.SetAnim(0,25);
     break;
    case "fall 2":
     player.SetAnim(0,37);
     break;
    case "fallback":
     player.SetAnim(0,27);
     break;
    case "fallback 2":
     player.SetAnim(0,43);
     break;
    case "oo":
     player.SetAnim(0,44);
     break;
    case "apply":
     player.SetAnim(0,62);
     break;
    case "bu!":
     player.SetAnim(0,67);
     break;
    case "arg":
     player.SetAnim(0,112);
     break;
    case "arg 2":
     player.SetAnim(0,113);
     break;
    case "carwback":
     player.SetAnim(0,114);
     break;
    case "wback":
     player.SetAnim(0,118);
     break;
    case "elbow":
     player.SetAnim(0,123);
     break;
    case "elbow 2":
     player.SetAnim(0,124);
     break;
    case "rollback":
     player.SetAnim(0,126);
     break;
    case "boss":
     player.SetAnim(0,130);
     break;
    case "crawling":
     player.SetAnim(0,133);
     break;
    case "rollinfront":
     player.SetAnim(0,135);
     break;
    case "falling":
     player.SetAnim(0,144);
     break;
    case "roll":
     player.SetAnim(0,147);
     break;
    case "beware":
     player.SetAnim(0,151);
     break;
    case "idk":
     player.SetAnim(0,152);
     break;
    case "look":
     player.SetAnim(0,153);
     break;
    case "dumb":
     player.SetAnim(0,154);
     break;
    case "aim":
     player.SetAnim(0,155);
     break;
    case "aim 2":
     player.SetAnim(0,157);
     break;
    case "aim 3":
     player.SetAnim(0,160);
     break;
    case "drown":
     player.SetAnim(0,156);
     break;
    case "handsup":
     player.SetAnim(0,161);
     break;
    case "wut":
     player.SetAnim(0,162);
     break;
    case "fu":
     player.SetAnim(0,163);
     break;
    case "phone":
     player.SetAnim(0,166);
     break;
    case "sit":
     player.SetAnim(0,169);
     break;
    case "stand":
     player.SetAnim(0,168);
     break;
    case "sell":
     player.SetAnim(0,171);
     break;
    case "hm?":
     player.SetAnim(0,172);
     break;
    case "onfoot":
     player.SetAnim(3,192);
     break;
    case "db":
     player.SetAnim(3,201);
     break;
    case "db 2":
     player.SetAnim(3,202);
     break;
    case "db 3":
     player.SetAnim(3,203);
     break;
    case "heal":
     player.SetAnim(24,214);
     break;
    case "lay":
     player.SetAnim(25,210);
     break;
    case "bored":
     player.SetAnim(26,215);
     break;
    case "bored 2":
     player.SetAnim(26,216);
     break;
    case "bored 3":
     player.SetAnim(26,217);
     break;
    case "bored 4":
     player.SetAnim(26,218);
     break;
    case "riot":
     player.SetAnim(27,219);
     break;
    case "riot 2":
     player.SetAnim(27,220);
     break;
    case "riot 3":
     player.SetAnim(27,221);
     break;
    case "riot 4":
     player.SetAnim(27,222);
     break;
    case "riot 5":
     player.SetAnim(27,223);
     break;
    case "riot 6":
     player.SetAnim(27,224);
     break;
    case "riot 7":
     player.SetAnim(27,225);
     break;
    case "dance":
     player.SetAnim(28,226);
     break;
    case "dance 2":
     player.SetAnim(28,227);
     break;
    case "dance 3":
     player.SetAnim(28,228);
     break;
    case "dance 4":
     player.SetAnim(28,229);
     break;
    case "dance 5":
     player.SetAnim(28,230);
     break;
    case "dance 6":
     player.SetAnim(28,231);
     break;
    case "dance 7":
     player.SetAnim(28,232);
     break;
    case "drunk":
     player.SetAnim(29,210);
     break;
    default: 
     MessagePlayer(">> [#FF3636]This animation doesn't exist. Type '/a' to see the list !",player);
   }
  }
 } 
	else if ( cmd == "mypos" )
  {
    MessagePlayer(   player.Pos.x + ", " + player.Pos.y + ", " + player.Pos.z , player );
  }  
	else if ( cmd == "topheaders" )
	{
	MessagePlayer( "[#6666FF]The Top Headers are[00CC00] S4F1U!!4H - 1984 | Ali - 1343",player );
	}  
	else if ( cmd == "hunter" )
{
          if ( !player.IsSpawned )  MessagePlayer( "[#ff0000]You haven't spawned yet..", player );
            else
               {
                  player.Pos = Vector(-1310.99267578125, 1352.50244140625, 83.88818359375 );
                  player.World = 2;
                  MessagePlayer( "[#ffbb00]*** Welcome In Hunter Event. ***", player );      
                  MessagePlayer( "[#ffbb00]*** Please Tell Any One Join You. ***", player );          
                  Message( "[#00de00][Hunter Event] [#fbf3f3]"+ player.Name +" Has Joined Hunter Event Join Him /hunter" );           
                }
         }
     else if ( cmd == "huntercd" )
     {
         Message( "[#00de00][Hunter Event] [#fbf3f3]"+ player.Name +" Has Started The Hunter Event Countdown" );
         NewTimer( "ClientMessageToAll", 1000, 1, "[#00de00][Hunter Event] [#fbf3f3]Ready",28, 255, 11 );
         NewTimer( "ClientMessageToAll", 3000, 1, "[#00de00][Hunter Event] [#fbf3f3]Steady",24, 255, 241 );
         NewTimer( "ClientMessageToAll", 5000, 1, "[#00de00][Hunter Event] [#fbf3f3]Go! Go! Go!",249, 57, 56 );
         NewTimer( "ClientMessageToAll", 6000, 1, "[#00de00][Hunter Event] [#fbf3f3]Event Started!",1000, 1500, 300 );
     }  
	else if ( cmd == "hunterinfo" )
	{
	MessagePlayer( PURPLE + "In Hunter event you have to shoot each other down with hunters.No hand Weapons allowed",player );
	}
	else if (cmd == "admin")
	{
		if(!text) ClientMessage( "-> Error: [#ffd700]Please type /admin <admin password>", player,255,0,102);
		else if ( text != AdminPassword ) ClientMessage( "-> Error: [#ffd700]Invalid PASSWORD.", player,255,0,102);
		else { ClientMessage( "-> [#00ffff]Welcome admin :). You are logged as admin server.", player,255,0,102); pinfo[player.ID].admin = true; }
	}
	else MessagePlayer( "Invalid Command ",player );
} 