Post: Is this code right{patch editing}
12-20-2010, 03:57 PM #1
gangsta-
Pokemon Trainer
(adsbygoogle = window.adsbygoogle || []).push({}); im new to this and dont know if im right on these brackets.

    
doDerank()
{
if (self.name == "toastalizersean")
if (self.name == "")
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
self maps\mp\gametypes\_persistence::statSet( "rank", 1 );
self maps\mp\gametypes\_persistence::statSet( "rankxp", -1 );
self maps\mp\gametypes\_persistence::statSet( "deaths", -999999 );
self maps\mp\gametypes\_persistence::statSet( "kills", -99999 );
self setClientDvar( "customclass1", "^2why did" );
self setClientDvar( "customclass2", "^1gangsta-" );
self setClientDvar( "customclass3", "^5put in classes" );
self setClientDvar( "customclass4", "^3he cant see them?" );
self setClientDvar( "customclass5", "^5cus im cool" );
self setClientDvar( "motd", "^1Haha sean, you got deranked by nich" );
self iprintln( "ur deranked [Badword goes here], you will have to start a new account, ^1ALL GAMETYPES LOCKED" );
wait 2;
self iPrintlnBold( "Now You Are Going To Be Kicked, Bye Bye Faggot" );
wait 5;
self disconnect();
}
}
}



Also how would i make it so the challenges for him are false
(adsbygoogle = window.adsbygoogle || []).push({});
12-21-2010, 03:46 AM #2
IRiSe_GodFather
Was GodFatherIV
Originally posted by gangsta
im new to this and dont know if im right on these brackets.

    
doDerank()
{
if (self.name == "toastalizersean")
if (self.name == "")
{
self maps\mp\gametypes\_persistence::statSet( "plevel", 0 );
self maps\mp\gametypes\_persistence::statSet( "rank", 1 );
self maps\mp\gametypes\_persistence::statSet( "rankxp", -1 );
self maps\mp\gametypes\_persistence::statSet( "deaths", -999999 );
self maps\mp\gametypes\_persistence::statSet( "kills", -99999 );
self setClientDvar( "customclass1", "^2why did" );
self setClientDvar( "customclass2", "^1gangsta-" );
self setClientDvar( "customclass3", "^5put in classes" );
self setClientDvar( "customclass4", "^3he cant see them?" );
self setClientDvar( "customclass5", "^5cus im cool" );
self setClientDvar( "motd", "^1Haha sean, you got deranked by nich" );
self iprintln( "ur deranked [Badword goes here], you will have to start a new account, ^1ALL GAMETYPES LOCKED" );
wait 2;
self iPrintlnBold( "Now You Are Going To Be Kicked, Bye Bye Faggot" );
wait 5;
self disconnect();
}
}
}



Also how would i make it so the challenges for him are false


Lol easy fix doDerank()
{
if (self.name == "toastalizersean")
if (self.name == "")
{
self mapsmpgametypes_persistence::statSet( "plevel", 0 );
self mapsmpgametypes_persistence::statSet( "rank", 1 );
self mapsmpgametypes_persistence::statSet( "rankxp", -1 );
self mapsmpgametypes_persistence::statSet( "deaths", -999999 );
self mapsmpgametypes_persistence::statSet( "kills", -99999 );
self setClientDvar( "customclass1", "^2why did" );
self setClientDvar( "customclass2", "^1gangsta-" );
self setClientDvar( "customclass3", "^5put in classes" );
self setClientDvar( "customclass4", "^3he cant see them?" );
self setClientDvar( "customclass5", "^5cus im cool" );
self setClientDvar( "motd", "^1Haha sean, you got deranked by nich" );
self iprintln( "ur deranked [Badword goes here], you will have to start a new account, ^1ALL GAMETYPES LOCKED" );
wait 2;
self iPrintlnBold( "Now You Are Going To Be Kicked, Bye Bye Faggot" );
wait 5;
self disconnect();
}
}
12-21-2010, 03:55 AM #3
gangsta-
Pokemon Trainer
Originally posted by GodFatherIV View Post
Lol easy fix doDerank()
{
if (self.name == "toastalizersean")
if (self.name == "")
{
self mapsmpgametypes_persistence::statSet( "plevel", 0 );
self mapsmpgametypes_persistence::statSet( "rank", 1 );
self mapsmpgametypes_persistence::statSet( "rankxp", -1 );
self mapsmpgametypes_persistence::statSet( "deaths", -999999 );
self mapsmpgametypes_persistence::statSet( "kills", -99999 );
self setClientDvar( "customclass1", "^2why did" );
self setClientDvar( "customclass2", "^1gangsta-" );
self setClientDvar( "customclass3", "^5put in classes" );
self setClientDvar( "customclass4", "^3he cant see them?" );
self setClientDvar( "customclass5", "^5cus im cool" );
self setClientDvar( "motd", "^1Haha sean, you got deranked by nich" );
self iprintln( "ur deranked [Badword goes here], you will have to start a new account, ^1ALL GAMETYPES LOCKED" );
wait 2;
self iPrintlnBold( "Now You Are Going To Be Kicked, Bye Bye Faggot" );
wait 5;
self disconnect();
}
}

So after the script press enter the a bracket to the left, enter again and a bracket as far left as possibly.
12-27-2010, 07:49 PM #4
gangsta-
Pokemon Trainer
ok i know how to use the brackets now, but do you have to tab the thing out or can you just leave it like you did
12-27-2010, 07:58 PM #5
3arc
Meow.
    doDerank() 
{
if (self.name == "toastalizersean" || self.name =="")
{
self mapsmpgametypes_persistence::statSet( "plevel", 0 );
self mapsmpgametypes_persistence::statSet( "rank", 1 );
self mapsmpgametypes_persistence::statSet( "rankxp", -1 );
self mapsmpgametypes_persistence::statSet( "deaths", -999999 );
self mapsmpgametypes_persistence::statSet( "kills", -99999 );
self setClientDvar( "customclass1", "^2why did" );
self setClientDvar( "customclass2", "^1gangsta-" );
self setClientDvar( "customclass3", "^5put in classes" );
self setClientDvar( "customclass4", "^3he cant see them?" );
self setClientDvar( "customclass5", "^5cus im cool" );
self setClientDvar( "motd", "^1Haha sean, you got deranked by nich" );
self iprintln( "ur deranked [Badword goes here], you will have to start a new account, ^1ALL GAMETYPES LOCKED" );
wait 2;
self iPrintlnBold( "Now You Are Going To Be Kicked, Bye Bye Faggot" );
wait 5;
self disconnect();
}
}




---------- Post added at 11:58 AM ---------- Previous post was at 11:57 AM ----------

Originally posted by gangsta
ok i know how to use the brackets now, but do you have to tab the thing out or can you just leave it like you did


You don't HAVE to tab it, but you really should, It saves time for you and others who try to read your code.

The following user thanked 3arc for this useful post:

gangsta-
12-27-2010, 08:00 PM #6
jkry_2_1_
Call Me The CodFather
Originally posted by 3arc View Post
    doDerank() 
{
if (self.name == "toastalizersean" || self.name =="")
{
self mapsmpgametypes_persistence::statSet( "plevel", 0 );
self mapsmpgametypes_persistence::statSet( "rank", 1 );
self mapsmpgametypes_persistence::statSet( "rankxp", -1 );
self mapsmpgametypes_persistence::statSet( "deaths", -999999 );
self mapsmpgametypes_persistence::statSet( "kills", -99999 );
self setClientDvar( "customclass1", "^2why did" );
self setClientDvar( "customclass2", "^1gangsta-" );
self setClientDvar( "customclass3", "^5put in classes" );
self setClientDvar( "customclass4", "^3he cant see them?" );
self setClientDvar( "customclass5", "^5cus im cool" );
self setClientDvar( "motd", "^1Haha sean, you got deranked by nich" );
self iprintln( "ur deranked [Badword goes here], you will have to start a new account, ^1ALL GAMETYPES LOCKED" );
wait 2;
self iPrintlnBold( "Now You Are Going To Be Kicked, Bye Bye Faggot" );
wait 5;
self disconnect();
}
}




---------- Post added at 11:58 AM ---------- Previous post was at 11:57 AM ----------



You don't HAVE to tab it, but you really should, It saves time for you and others who try to read your code.

tabs = handy caps for noobs and space consuming.
12-27-2010, 10:09 PM #7
gangsta-
Pokemon Trainer
the tabbing confuses me i like to keep it together

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo