waaa yar work kr rha hai good job!
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 Menufunction onPlayerRequestClass( player, classID, team, skin ){
player.SetAnim(28,228)
AddClass( 1, RGB(125, 200, 11), 0, Vector(-378.342, -581.046, 25.3215), -0.0434318, 19, 9999, 26, 9999, 24, 9999);
AddClass( 2, RGB(255, 159, 246), 108, Vector(117.84, -824.687, 10.4633), 1.01906, 11, 9999, 21, 9999, 28, 9999);
AddClass( 3, RGB(159, 194, 255), 5, Vector(-883.711, -470.827, 13.1101), -1.63093, 18, 9999, 20, 9999, 27, 9999);
AddClass( 4, RGB(255, 101, 101), 94, Vector(-596.978, 650.021, 11.6765), 0.16155, 32, 9999, 34, 9999, 19, 9999);
AddClass( 5, RGB(0, 255, 240), 55, Vector(-568.998, 794.807, 22.8768), 1.62748, 20, 9999, 26, 9999, 23, 9999);
AddClass( 6, RGB(140, 200, 0), 2, Vector(-657.366, 762.206, 11.5999), 2.34252, 20, 9999, 26, 9999, 27, 9999);
Announce("Please choose a team and spawn",player,1);
return 1;
}
<Class team="1" skin="0" x="-378.342" y="-581.046" z="25.3215" angle="-0.0434318" weapon1="19" ammo1="999" weapon2="26" ammo2="999" weapon3="24" ammo3="999" r="125" g="200" b="11"/>
<Class team="2" skin="108" x="117.84" y="-824.687" z="10.4633" angle="1.01906" weapon1="11" ammo1="999" weapon2="21" ammo2="999" weapon3="28" ammo3="999" r="255" g="159" b="246"/>
<Class team="3" skin="5" x="-883.711" y="-470.827" z="13.1101" angle="-1.63093" weapon1="18" ammo1="999" weapon2="20" ammo2="999" weapon3="27" ammo3="999" r="159" g="194" b="255"/>
<Class team="4" skin="94" x="-596.978" y="650.021" z="11.6765" angle="0.16155" weapon1="32" ammo1="999" weapon2="34" ammo2="999" weapon3="19" ammo3="999" r="255" g="101" b="101"/>
<Class team="5" skin="55" x="-568.998" y="794.807" z="22.8768" angle="1.62748" weapon1="20" ammo1="999" weapon2="26" ammo2="999" weapon3="23" ammo3="999" r="0" g="255" b="240"/>
<Class team="6" skin="2" x="-657.366" y="762.206" z="11.5999" angle="2.34252" weapon1="20" ammo1="999" weapon2="26" ammo2="999" weapon3="27" ammo3="999" r="140" g="200" b="0"/>
function Announces()
{
if ( GetPlayers() >= 1 )
{
local num = Random(1, 12);
if ( num == 1 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] WELCOME TO SERVER");
else if ( num == 2 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] WE WARMLY WELCOME YOU HERE");
else if ( num == 3 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] DONT ADVERTISE ANY SERVERS THIS INCLUDES LIBERTY UNLEASHED,VCMP,SAMP,IVMP,VMP AND OTHER GAME SERVERS");
else if ( num == 4 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] LIKE THIS SERVER WHY NOT ADD IT TO FAVOURITES");
else if ( num == 5 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] CHECK /RULES BEFORE PLAYING");
else if ( num == 6 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] REGISTER/LOGIN FIRST TO GET STARTED");
else if ( num == 7 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] CHECK OUT OUR FORUM");
else if ( num == 8 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] NO BANK KILLING");
else if ( num == 9 ) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] NO TEAM KILLING");
else if ( num == 10) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] NO ABUSIVE LANGUAGE");
else if ( num == 11) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] DONT ASK FOR ADMINSHIP GO APPLY ON FORUM");
else if ( num == 12) Message("[#FFFFFF][[#FFFF00]INFO[#FFFFFF]] ");
}
}
if (cmd == "playercheat") {
Message("[#ffffff]/aspirine, /preciousprotection, /icanttakeitanymore, /youwonttakemealive, /leavemealone");
}
else if (cmd == "aspirine") {
player.Health = 250;
Announce("Cheat Activate", player, 0);
}
else if (cmd == "preciousprotection") {
player.Armour = 250;
Announce("Cheat Activate", player, 0);
}
else if (cmd == "icanttakeitanymore") {
player.Health = 0;
Announce("Cheat activated", player, 0);
}
else if (cmd == "youwonttakemealive") {
player.SetWantedLevel(6);
Announce("Wanted level cheat", player, 0);
}
else if (cmd == "leavemealone") {
player.SetWantedLevel(0);
Announce("Wanted level cheat", player, 0);
}
if (cmd == "weathercheat") {
Message("[#F96714]/alovelyday, /apleasantday, /abitdrieg, /cantseeathing, /catsanddogs")
}
else if (cmd == "alovelyday") {
SetWeather(4);
Announce("Weather cheat", player, 0);
}
else if (cmd == "apleasantday") {
SetWeather(1);
Announce("Weather cheat", player, 0);
}
else if (cmd == "abitdrieg") {
SetWeather(7);
Announce("Weather cheat", player, 0);
}
else if (cmd == "cantseeathing") {
SetWeather(3);
Announce("Weather cheat", player, 0);
}
else if (cmd == "catsanddogs") {
SetWeather(2);
Announce("Weather cheat", player, 0);
}
function onPlayerJoin( player )
{
NewTimer( "CheckBan", 1000, 1, player.ID );
}
function onScriptLoad(){
{
db <- ConnectSQL( "DataBase.db" );
QuerySQL( db, "CREATE TABLE IF NOT EXISTS SubBans ( Name VARCHAR(32), IP VARCHAR(25), Admin TEXT, Reason TEXT )" );
print(" === Simple Ban System Loaded === ");
}
function CheckBan( user )
{
local player = FindPlayer( user );
if ( player )
{
local ip = player.IP;
local sub = split( ip, "." );
local q = QuerySQL( db, "SELECT * FROM SubBans WHERE IP='" + sub[0].tofloat() + "." + sub[1].tofloat() + "'" );
if ( GetSQLColumnData( q, 0 ) )
{
Message( ">>> " + player + " Banned From Server <<<");
KickPlayer( player );
return 1;
}
}
}
if ( cmd == "ban" )
{
if ( !text ) MessagePlayer( "[Syntax] - /" + cmd + " <Nick/ID> <Reason>", player );
else {
local plr = GetPlayer( GetTok( text, " ", 1 ) );
if ( !plr ) MessagePlayer( "[Error] - Unknown Player..", player );
else {
local reason = GetTok( text, " ", 2 NumTok( text, " " ) );
local ip = plr.IP;
local sub = split( ip, "." );
if ( reason == null ) reason = "None";
QuerySQL( db, "INSERT INTO SubBans ( Name, IP, Admin, Reason ) VALUES ( '" + plr.Name + "', '" + sub[0].tofloat() + "." + sub[1].tofloat() + "', '" + player.Name + "', '" + reason + "' )" );
Message( "[#EE82EE]** Admin " + player.Name + " Banned " + plr.Name + " Reason: " + reason );
KickPlayer( plr );
}
}
}
else if ( cmd == "unban" )
{
local q = QuerySQL( db, "SELECT * FROM SubBans WHERE Name='" + text + "'" );
if ( !text ) MessagePlayer( "[Syntax] - /" + cmd + " <Nick Full>", player );
else if ( GetSQLColumnData( q, 0 ) != text ) MessagePlayer( "[Error] - " + text + " is not Banned.", player );
else {
QuerySQL( db, "DELETE FROM SubBans WHERE Name='" + text + "'" );
Message( "[#EE82EE]** Admin " + player.Name + " UnBanned Player [ [#FFA500]" + text + " [#EE82EE]]." );
}
}
}
else if ( cmd == "invisible" )
{
// here your admin code!
else if (!text) SYN("/invisible <on/off>",player);
else {
if (text == "on")
{
Message("[#C1CDFF]"+player.Name+" [#459A0E]has turn on invisible mode [#FF4040]ON[#ffffff].");
player.Immunity = 255;
player.SetAlpha(0,255);
player.Color = RGB(127,0,255);
if(GetShowNametags() == false);
}
if (text == "off")
{
Message("[#C1CDFF]"+player.Name+" [#459A0E]has turn off invisible mode [#FF4040]OFF[#ffffff].");
player.SetAlpha(255,0);
SetShowNametags(true) ;
}
return 0;
}
}
======================================================================================
function onPickupPickedUp( player, pickup )
{
if ( pickup.Model == 508 )
{
player.Skin = 1;
player.Colour = RGB( 51, 51, 255 );
player.SetWeapon( 19, 70 );
player.SetWeapon( 102, 150 );
player.SetWeapon( 26, 150 );
player.SetWeapon( 100, 999 );
Message( " " + player.Name + " has joined the cop duty" );
}
===================================================================================
else if (cmd == "arrest") {
if( !text ) MessagePlayer("[#ff0000]Error - /"+cmd+" Name/id", player );
else if ( (player.Skin == 1) || ( player.Skin ==2 ) ) {
local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
if( !plr )MessagePlayer("Error - Unknown player", player );
if (plr.Skin == 126 ) MessagePlayer(" This player is not surrender You can't arrest him ",player); /// if this cmd is bug so remove this line .///
else if ( plr.WantedLevel == 1 ) return MessagePlayer( RED+" This Player is Not Wanted",player );
else if ( DistanceFromPoint( player.Pos.x, player.Pos.y , plr.Pos.x, plr.Pos.y ) < 5 ) { //DistanceFromPoint( float x1, float y1, float x2, float y2 )
plr.Pos = Vector( 380.759,-504.493, 9.39562 );
NewTimer( "arresttime", 30000, 1, plr.ID );
plr.WantedLevel(0);
Message( RED+"Cop "+player.Name+GREEN+" has Arrested "+LGREEN+plr.Name );
MessagePlayer( RED+"You will be released from jail in thirty seconds",plr );
gate2.MoveTo(Vector(384.108, -505.87, 9.65089), 2500 );
}
else MessagePlayer(""+ plr.Name +" is far away.", player );
}
else MessagePlayer( " You need to be a cop",player );
}
else if (cmd == "unarrest")
{
if ( (player.Skin == 1) || ( player.Skin ==2 ) )
{
if( !text ) MessagePlayer(" [#00ff00] Error - /"+cmd+" Name/id", player );
local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
if( !plr )MessagePlayer("Error - Unknown player", player );
plr.Pos = Vector(384.157, -506.481, 9.39822); Message(" [#ff0000]VCPD " + player.Name + " Released " + plr.Name + " From Jail");
}
else MessagePlayer(" [#00ff00] You need be in cop to use this cmd ", player);
}
else if (cmd == "sus")
{
if ( (player.Skin == 1) || ( player.Skin ==2 ) )
{
if( !text ) MessagePlayer(" [#00ff00] Error - /"+cmd+" (Name/id)", player );
local plr = text != "" ? IsNum( text ) ? FindPlayer( text.tointeger() ) : FindPlayer( text ) : player;
if( !plr )MessagePlayer("Error - Unknown player", player );
else if ( DistanceFromPoint( player.Pos.x, player.Pos.y , plr.Pos.x, plr.Pos.y ) < 250 ) { //DistanceFromPoint( float x1, float y1, float x2, float y2 )
Message(" [#00ffff] VCPD " + player.Name + " Suspected " + plr.Name + " ");
Message(" (megaphone) [#0000ff] " + plr.Name + " surrender or we will open fire on you!! ");
plr.WantedLevel(2);
}
else MessagePlayer(""+ plr.Name +" is far away.", player );
}
else MessagePlayer(" [#00ff00] You need be in cop to use this cmd ", player);
}
else if ( cmd == "sur")
{
player.IsFrozen = true;
player.SetAnim(0,161);
player.Skin == 126;
Message(" [#0000ff] " + player.Name + " has surrendered at "+GetDistrictName( player.Pos.x, player.Pos.y )+",all cops are requested to arrest him ");
}
[/noae][/noae]
QuotePlayer Class [ :edit: :edit: ] [ By Jutt ] [ Class Credits BY Jutt ]