So you added something wrong, be sure that everything in his Arrange.
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 MenuQuote from: Humzasajjad on Sep 20, 2018, 11:49 AMQuerySQL(db, "create table if not exists Database ( Name TEXT, LowerName TEXT, Password VARCHAR(255), Level NUMERIC DEFAULT 1, IP VARCHAR(255) ");This /setlevel command, for the second system not the first.
if ( cmd == "setlevel" )
{
if ( !text ) MessagePlayer( "/"+cmd+" <Nick/id> <Level>", player );
else
{
local
plr = GetPlayer( GetTok( text, " ", 1 ) ),
lvl = GetTok( text, " ", 2),
if ( !plr ) MessagePlayer( "Unknown Player..", player );
else if ( !lvl ) MessagePlayer("You must put a level.", player);
else if ( !IsNum( lvl ) ) MessagePlayer("Level must be in numbers.", player);
else
{
local q = QuerySQL(Admindb, "SELECT * FROM Admins WHERE Name = '" + escapeSQLString(plr.Name) + "'");
if (!q) QuerySQL( DataBase, "INSERT INTO Accounts ( Name, LowerName, Level ) VALUES ( '" + escapeSQLString(plr.Name) + "','" + escapeSQLString(plr.Name) + "','" + 0 + "')" );
else
{
Stats[ plr.ID ].Level = lvl.tointeger();
QuerySQL( Admindb, "UPDATE Admins SET Level='"+lvl+"' WHERE Name LIKE '" + plr.Name + "'" );
Message("Administration Command: Admin "+player.Name+" Has Set "+plr.Name+" As an admin level: "+lvl+".");
}
}
}
}
bro when i add this there was on script load error comes
else if ( cmd == "setlevel" )
{
if ( !text ) MessagePlayer( "/"+cmd+" <Nick/id> <Level>", player );
else
{
local
plr = GetPlayer( GetTok( text, " ", 1 ) ),
lvl = GetTok( text, " ", 2);
if ( !plr ) MessagePlayer( "Unknown Player..", player );
else if ( !lvl ) MessagePlayer("You must put a level.", player);
else if ( !IsNum( lvl ) ) MessagePlayer("Level must be in numbers.", player);
else
{
Stats[ plr.ID ].Level = lvl.tointeger();
QuerySQL( db,"UPDATE Database SET Level='"+lvl+"' WHERE lower(Name) LIKE '"+plr.Name+"'");
Message("Administration Command: Admin "+player.Name+" Has Set level of "+plr.Name+" to: "+lvl+".");
}
}
}
QuerySQL(db, "create table if not exists Database ( Name TEXT, LowerName TEXT, Password VARCHAR(255), Level NUMERIC DEFAULT 1, IP VARCHAR(255) ");
Level = 0;
Admindb <- ConnectSQL("AdminsDataBase.db");
QuerySQL(Admindb, "create table if not exists Admins ( Name TEXT, LowerName TEXT, Level NUMERIC DEFAULT 0 ) ");
Stats <- array(GetMaxPlayers(), null);
IfAdmin(player);
Stats[ player.ID ] = PlayerClass();
function IfAdmin(player)
{
local q = QuerySQL(Admindb, "SELECT * FROM Admins WHERE Name = '" + escapeSQLString(player.Name) + "'");
if (q)
{
Stats[ player.ID ].Level = GetSQLColumnData(q, 1);
}
}
if ( cmd == "setlevel" )
{
if ( !text ) MessagePlayer( "/"+cmd+" <Nick/id> <Level>", player );
else
{
local
plr = GetPlayer( GetTok( text, " ", 1 ) ),
lvl = GetTok( text, " ", 2),
if ( !plr ) MessagePlayer( "Unknown Player..", player );
else if ( !lvl ) MessagePlayer("You must put a level.", player);
else if ( !IsNum( lvl ) ) MessagePlayer("Level must be in numbers.", player);
else
{
local q = QuerySQL(Admindb, "SELECT * FROM Admins WHERE Name = '" + escapeSQLString(plr.Name) + "'");
if (!q) QuerySQL( DataBase, "INSERT INTO Accounts ( Name, LowerName, Level ) VALUES ( '" + escapeSQLString(plr.Name) + "','" + escapeSQLString(plr.Name) + "','" + 0 + "')" );
else
{
Stats[ plr.ID ].Level = lvl.tointeger();
QuerySQL( Admindb, "UPDATE Admins SET Level='"+lvl+"' WHERE Name LIKE '" + plr.Name + "'" );
Message("Administration Command: Admin "+player.Name+" Has Set "+plr.Name+" As an admin level: "+lvl+".");
}
}
}
}
Quote from: =RK=MarineForce on Sep 15, 2018, 10:12 PMHello, Sheep You posted this at Wrong SectionNuh, San Andreas To Vice City.
You want Convert it to VC TO VC-MP?
if(! text) MessagePlayer("/rank <NICK> ",player); //It's Important to use "!" if the text unused. "false"
else{
local plr = FindPlayer(text); // Add this after else
if(!plr) MessagePlayer( plr + " not online ",player); //This too and this the problem was in this " .
Yourcodes........
I just say this to be careful in the next time if something bugged may be an something small like this ! or " or +.function onPlayerChat( player, message )
{
if( IsMuted[ player.ID] )
{
MessagePlayer(">> You are muted.",player);
return 0;
}
else if ( (player.Skin == 83) || ( player.Skin ==84 ) )
{
Message("[#CCFF00][Cuban Team] "+player.Name+": "+message);
}
else if ( (player.Skin == 85) || ( player.Skin ==86 ) )
{
Message("[#00cc00][Haitian Team] " + player.Name + ": "+message);
}
else if ( (player.Skin == 215) || ( player.Skin ==160 ) )
{
Message("[#FFFFFF][Spectate] " + player.Name + ": "+message);
}
local MUTE_DIVIDE = 1000;
if ( ( time() - antiSpamTime[ player.ID ] ) <= LIMT_REP_TIME ) {
antiSpamWarnings[ player.ID ]++;
if ( antiSpamWarnings[ player.ID ] >= LIMIT_REP_SPAM ) {
if( !IsMuted[ player.ID ] ){
IsMuted[ player.ID ] = true;
Message(format(">> Auto-Muted: %s Reason: Spamming the Chat. Duration[ %d seconds ]",player.Name,MUTE_TIME/MUTE_DIVIDE) );
NewTimer("autounmute",MUTE_TIME.tointeger(),1,player.ID);
}
}
} else {
antiSpamWarnings[ player.ID ] = 0;
}
antiSpamTime[ player.ID ] = time();
}
Quote from: umar4911 on Sep 10, 2018, 04:24 PMNice, keep going.Quote from: Mahmoud Tornado on Sep 10, 2018, 12:40 PMNot much work is left. I think we can start it on the first of November.Quote from: KuRuMi^ on Sep 10, 2018, 11:17 AMIn Halloween, or talking about 1\2019. >.<?!Quote from: Oscar3063 on Sep 09, 2018, 11:26 PMQuote from: vitogta on Jun 20, 2018, 05:21 PMgood luck, intresting to see what will happen with it
It looks like it will be promising, will it be this year?
Hi, I'm one of the developers of this grand event. We'll hope by completing & starting it by late 2018 unfortunately. Our expectations were to start by summer since mostly everyone was available to do their thing. We had trouble with one of our developers who lacked efforts and did nothing.
Quote from: =RK=MarineForce on Sep 10, 2018, 11:05 AMLmfao
i just added this
dofile( "IPtoCountry/IPtoCountry.nut" );
secondarydb <- ConnectSQL( "IPtoCountry/IpToCountry.db" );
it works Xddd
this changed by me .
Quote from: Takanaue on Jan 11, 2015, 12:24 PMIP to Country (VCMP)Yes, it's really "Lmfao". >.<function onScriptLoad()
{
dofile( "IPtoCountry/IPtoCountry.nut" );
secondarydb <- ConnectSQL( "IpToCountry.db" );
}
Quote from: KuRuMi^ on Sep 10, 2018, 11:17 AMIn Halloween, or talking about 1\2019. >.<?!Quote from: Oscar3063 on Sep 09, 2018, 11:26 PMQuote from: vitogta on Jun 20, 2018, 05:21 PMgood luck, intresting to see what will happen with it
It looks like it will be promising, will it be this year?
Hi, I'm one of the developers of this grand event. We'll hope by completing & starting it by late 2018 unfortunately. Our expectations were to start by summer since mostly everyone was available to do their thing. We had trouble with one of our developers who lacked efforts and did nothing.
Quote from: Oscar3063 on Sep 09, 2018, 11:26 PMwill it be this year?
Quote from: umar4911 on Jun 20, 2018, 07:03 AMVC:MP Clan Tournament 2018
Quote from: rww on Sep 09, 2018, 06:41 PMelse if ( cmd == "drownall" )
{
if ( stats[player.ID].Level < 4 )
{
if ( !text ) MessagePlayer( "Syntax, /" + cmd + " <Nick/ID> <Reason>", player );
else {
local plr = GetPlayer( GetTok( text, " ", 1 ) );
if ( !plr ) MessagePlayer( "[#FF0000]Unknown Player..", player );
else {
for( local i = 0; i <= GetMaxPlayers(); i++ )
{
p = FindPlayer( i );
p.Pos = Vector( -761.1595 -340.6097 9.9061 );
Message( "[#FFbb00]** Admin " + player.Name + " Drowned All Players ");
}
}
}
}
else MessagePlayer( "[#FF0000]You're not allowed to use this command. " , player )
}
lol? why /drownall [plr name] [reason] for drown all? why not /drownall [reason]?
Quote from: Takanaue on Sep 09, 2018, 12:15 AMBecause you're starting the server from localhost I guessSure thing.
Quote from: =RK=MarineForce on Sep 08, 2018, 10:47 PMi never used Cilent sideMe too.
Quote from: =RK=MarineForce on Sep 08, 2018, 09:16 PMhttps://ibb.co/fFUPLUThis is a client side, you must make a loop with main side and client side, i just gave you the idea of the score.
like this bro
and can i ad flags for Haitians and cubans? cubans can stole haitian flag
Quote from: =RK=MarineForce on Sep 08, 2018, 09:19 PMBRO There is no bug? i didn't tested it okay let me test xDThis is not a bug, it's just not the information command.