Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - GasanZ07

#2
Quote from: umar4911 on Oct 30, 2024, 03:53 PMYou cannot remove that afaik. You would need to make a custom class selector.
How to ?
#3
Quote from: habi2 on Oct 30, 2024, 10:28 AMIt is built-in. Only way to remove is manually creating a duplicate screen.
Camera will be set, arrow keys be checked, freezing player, changing skin when arrow is pressed.
Do you understand what i am saying?

Got it, dude, thank you
#4
Quote from: habi2 on Oct 29, 2024, 10:40 AMAre you looking for this?

See this: custom class selector by [R3V]Kelvin

Use left and right arrow keys to switch between classes.
Press fire button to spawn with the selected class.

How can I remove this?
#5
Hello friends. Is it possible to remove this text with the remove flags command?
https://imgur.com/a/dHMPRif
#6
Quote from: DEVIL on Oct 18, 2024, 04:19 PMi want to join it anyone here I know shikri is not with us anymore :( if anyone is here plz replay me


Dude [M4]Shikri_M4 has become a legend. It has been more than a year since we lost our great master. If he had lived today, his clan would have grown, but he passed away from the world overnight, unaware of anything. Me, [M4]Halil, PRO_KING, HaSaN and more clan members, admins and moderators tried to keep the clan alive. But we failed. The clan was destroyed. No more [M4] Clan, man. It's a sad truth but I can't accept it. If a team is assembled and the number of active players increases, maybe we can revive the clan. It all depends on the players and the game (I want that too)

It was master [M4]Shikri_M4's biggest dream to expand the clan and become known, and he was getting closer to his dreams every day. But the cruel Azrail took it from us.
#7
Servers / [TR] Turkiye Role Play Sunucusu
Oct 23, 2024, 09:54 AM
owner: GasanZ07

İp: 78.46.65.243:5999

Role Play Server
#8
hello brother
This system is very good and works, but there is a very small detail that you forgot. And I fixed this error. I use this system and it took me 2 minutes to realize the error. Here is the corrected version:

function onPlayerRequestSpawn( player )
{
if(!stats[player.ID].Reg) { MessagePlayer("[#E74C3C]Your account is not registered. please type [#ffffff]/register <password>[#E74C3C] to access the server.",player) ; return 0; }
if(stats[player.ID].Reg && stats[player.ID].Log == false) { MessagePlayer("[#E74C3C]Your account is not logged-in, please type [#ffffff]/login <password> [#E74C3C]to access the account.",player); return 0; }
else return 1;
}
#9
Hello buddy. You had a few mistakes on this, I fixed them and sent them to you.
 :)

class PlayerClass
{
    Level = 0;
}

function onScriptLoad()
{
stats <- array ( GetMaxPlayers(), null );
Admin <- ConnectSQL("Level.db");
QuerySQL(Admin, "create table if not exists Level ( Name Text ,Level NUMERIC DEFAULT 0) ");
}

function onPlayerJoin( player )
{
stats[ player.ID ] = PlayerClass();
AdminInfo(player);
}

function onPlayerPart( player, reason )
{
SaveAdmin(player);
}

function onPlayerCommand( player, cmd, text )
{
if ( ( cmd == "setlevel" ) || ( cmd == "setlvl" ) )
{
  if ( stats[ player.ID ].Level < 5 ) MessagePlayer("[#ff0000]Error: [#ffffff]You don't have permission to use this command.",player);
  else if ( !text ) PrivMessage( player, format( "Error: Use /%s <player> <Level>", cmd ) );
  else
  {
   local txt = split( text, " " );
   if ( txt.len() >= 2 )
   {
    local plr = FindPlayer( txt[ 0 ] ), lvl = txt[ 1 ];
    if ( !plr ) PrivMessage( player, "Error: Unknown player." );
    else if ( !IsNum( lvl ) ) ClientMessage( player, "Error: Level must be in numbers...",player, 255, 0, 0 );
    else if ( ( lvl.tointeger() < 1 ) || ( lvl.tointeger() > 7 ) ) ClientMessage( "ERROR: Allowed Level amount are between 1 and 7.", player, 255, 0, 0 );
    else if ( stats[ plr.ID ].Level == lvl.tointeger() ) PrivMessage( player, format( "Error: %s's Level is %d already.", plr.Name, lvl.tointeger() ) );
    else
    {
     stats[ plr.ID ].Level = lvl.tointeger();
     Message( "[#ffffff]"+player.Name+" [#25AAAA]changed the level of[#ffffff] "+plr.Name+"[#25AAAA] to [#ffffff]["+lvl.tointeger()+"].");
                }
   }
   else PrivMessage( player, format( "Error: Usage /%s <player> <Level>", cmd ) );
  }
  return 0;
 }
}

function AdminInfo(player)
{
    local q = QuerySQL(Admin, "SELECT * FROM Level WHERE Name = '" + escapeSQLString(player.Name) + "'");
    if (q)
    {
        stats[ player.ID ].Level = GetSQLColumnData(q, 1);
    }
    else QuerySQL( Admin, "INSERT INTO Level ( Name, Level ) VALUES ( '" + escapeSQLString(player.Name) + "', ' 0 ' )" );
}

function SaveAdmin(player)
{
    QuerySQL( Admin, "UPDATE Level SET Level='"+ stats[ player.ID ].Level +"' WHERE Name = '"+player.Name+"'");
}