Quote from: umar4911 on Sep 16, 2018, 02:03 PMComplete waste topicI agree, I haven't tested it but I know it won't work.
@marineforce plr.kill doesn't exist tho.
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: umar4911 on Sep 16, 2018, 02:03 PMComplete waste topicI agree, I haven't tested it but I know it won't work.
Quote from: (SpCy)Alex on Aug 12, 2018, 12:21 PMIf it works correctly it dissable the message printIts not working, It was not playing any song for some players (not all). And I used /showdebug 1, and this message came.
local q1 = QuerySQL( Bans, "SELECT * FROM Bans WHERE IP ='" +player.IP+"'")
local ip = GetSQLColumnData(q1, 1)
if (ip) KickPlayer(player)
else if (name) KickPlayer(player)
else if ( ip && name) KickPlayer( player)
else return 0
class PlayerStats
{
lastangle = null;
}
else if ( cmd == "checkangle" )
{
if ( stats[player.ID].lastangle == null ) stats[player.ID].lastangle = player.Angle;
{
NewTimer( "CheckAngle" , 1000, 0 , player.ID)
}
}
function CheckAngle( player )
{
local player = FindPlayer( player )
local lastangle = stats[player.ID].lastangle;
local newangle = player.Angle;
Announce( "Your Last Angle: " + lastangle + " New Angle " + newangle , player, 1 )
stats[player.ID].lastangle = newangle;
}
class PlayerStats
{
Cars = 0;
}
function onScriptload()
{
//just add this into your stats database or make a seperate for this
db <- ConnectSQL( "DataBase.db" );
stats <- array( GetMaxPlayers(), null )
QuerySQL(db, "CREATE TABLE IF NOT EXISTS Stats( Name TEXT, KILLS NUMERIC, DEATHS NUMERIC, CASH NUMERIC, CARS NUMERIC )
}
function LoadStats(player)
{
local q = QuerySQL( "SELECT * FROM Stats WHERE Name = '"+player.Name+"'" )
if ( q )
{
stats[player.ID].Cars = GetSQLColumnData( q, 4)
// just add this into your loadstats functions.
}
}
if ( stats[player.ID].Cars >= 3 ) MessagePlayer( "[#ff1111]Error: [#ffffff]You can not buy more then 3 cars" ,player )
function FBSLIST::AddNick( Nick, AdminLevel )
{
//This is place where you setted you level. Just the rest according to yours
Name = Nick;
Level = AdminLevel;
}
function LevelTag(lvl) {
//Make tags
lvl = (lvl ? lvl:0);
switch (lvl) {
case 2:
return "IRC Moderator>";
case 3:
return "IRC Admin>";
case 4:
return "IRC Manager>";
case 5:
return "IRC Helper>";
case 6:
return "IRC Owner>";
default:
return "IRC User>";
}
}
LevelTag1(level) + " " + Nick + ":" + text // Just add this to your IRC