Raised This Month: $32 Target: $400
 8% 

Funnyrank plugin for SourceMOD!


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-26-2011 , 10:43   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #11

Or you could try change
PHP Code:
static const String:ranks[71][110
to
PHP Code:
new String:ranks[][] 
Bacardi is offline
MPC
Junior Member
Join Date: Apr 2010
Old 02-26-2011 , 16:32   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #12

Thx for all the help guys! Except for that dude who kept deleting my posts
MPC is offline
1Swat2KillThemAll
SourceMod Donor
Join Date: Nov 2009
Old 02-26-2011 , 18:02   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #13

That dude who kept deleting your posts was a forum moderator, who enforced the forum's rules, you were breaking.
1Swat2KillThemAll is offline
Ginxeng
Senior Member
Join Date: Nov 2009
Location: Timber Doodle
Old 02-26-2011 , 21:31   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #14

Quote:
Originally Posted by RavenDan29 View Post
Im loving this plugin idear let me now when its done ;)

-SNIP-
I beleive it is, just take the code and compile it.
__________________
Ginxeng is offline
Send a message via AIM to Ginxeng Send a message via MSN to Ginxeng Send a message via Skype™ to Ginxeng
Ginxeng
Senior Member
Join Date: Nov 2009
Location: Timber Doodle
Old 02-28-2011 , 13:48   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #15

I tried this plugin and I like but, is there a way to print the fake rank to everyone and not just the person who typed it?
__________________
Ginxeng is offline
Send a message via AIM to Ginxeng Send a message via MSN to Ginxeng Send a message via Skype™ to Ginxeng
Cookies.net
Senior Member
Join Date: Jan 2011
Old 02-28-2011 , 14:24   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #16

this should do, haven't tested it

PHP Code:
#include <sourcemod>

#define VERSION "0.1"
#define NAME "Fake Rank"


static const String:ranks[111][] = {
    
"a loser",
    
"classified by the CIA.",
    
"secretly Vladimir Putin.",
    
"Co-Prince of Andorra.",
    
"Prime Minister of Italy.",
    
"climbin in yo windows- snatchin yo people up",
    
"President of the United States.",
    
"squill-head",
    
"terrible at the game- but can suck cock like a pro!",
    
"grand worldwide yiffing champion for the third year in a row",
    
"acrid Meso-American bullshit",
    
"irrelevant, there is only Zuul",
    
"out of the closet",
    
"about as reliable as a Ferguson rifle",
    
"a great, soft, sissy, girlie, nancy, French, bender, Man United supporting poof!",
    
"a nice cup of tea.",
    
"perfectly cromulent",
    
"not high enough to be allowed out of the gimp suit yet",
    
"an overweight, over-the-hill, nicotine-stained, borderline alcoholic homophobe with a superiority complex and an unhealthy obsession with male bonding",
    
"a cad and a bounder.",
    
"sees dead people.",
    
"the possessor of an arsehole like a clown\'s pocket.",
    
"a very loose vagina.",
    
"too damn high!.",
    
"pretty terrible.",
    
"excluding fees, tarriffs, and charges.",
    
"Michael Jackson.",
    
"Arse Licker By Appointment to His Majesty King George III.",
    
"like- totally the best player ever.",
    
"awesome sauce.",
    
"00 Agent.",
    
"Bond. James Bond.",
    
"only $999.99!",
    
"Mayor of London",
    
"Viscount and Baron of the Nile and of Burnham Thorpe in the County of Norfolk; Baron of the Nile and of Hilborough in the said County; Knight of the Most Honourable Order of the Bath; Vice Admiral of the White Squadron of the Fleet; Commander in Chief of his Majesty\'s Ships and Vessels in the Mediterranean; Duke of Bronte in Sicily; Knight Grand Cross of the Sicilian Order of St Ferdinand and of Merit; Member of the Ottoman Order of the Crescent; Knight Grand Commander of the Order of St. Joachim; Colonel of the Royal Marines; Freeman of Bath; Salisbury; Exeter; Plymouth; Monmouth; Sandwich; Oxford; Hereford; and Worcester; Oxford University Doctor of Civil Law",
    
"Douke Noulkemn.",
    
"irrelevant! You could never understand how i feel *fixes quiff*",
    
"herpsyphogonahlitissalmahalatosisaids - C.",
    
"An accomplished pianist *begins scanning the room* Ladies? *creepy smile*.",
    
"A slutty woman who is clearly asking for it.",
    
"Fifty-One out of Sixty-Eight.",
    
"One sexy snowman!",
    
"A Sandwich.",
    
"Fart Enthusiast.",
    
"Jimbob.",
    
"Tila Tequila.",
    
"Mark Sanford.",
    
"Hung like a horse.",
    
"melted chicken shit.",
    
"Nick Nolte.",
    
"Misfortunate Placenta.",
    
"Kosay\'s Cave Club member.",
    
"Cockzilla.",
    
"Butthorn.",
    
"A Mullet.",
    
"Southern Fried Chicken.",
    
"The mechanisation of Soviet agriculture.",
    
"UFO! dum dum dum dumdumdum! dee daa dee daa deedeedaa! WOOOOOOoooOOOOOOO! WOOOoo oo oo OOOOOOooooOOOOOoooo!",
    
"David\'s stepladder.",
    
"Kiss my snatch!",
    
"Roger Moore gave me gonorrhea.",
    
"-CLASSIFIED-",
    
"Zionist reptile menace.",
    
"CHEWBACCA [CENSORED] YOU UP.",
    
"HAN SOLO EAT A PINEAPPLE.",
    
"A Snape/Harry fanfiction.",
    
"A bundle of small twigs.",
    
"Oppressor of the proletariat.",
    
"A funky bass solo.",
    
"WHAT\'S GOING ON?!",
    
"Spiderdad.",
    
"Robert Smith\'s hair.",
    
"god",
    
"A -Greek Philosopher- *WINK*",
    
"The innocent love between a young boy and an older man.",
    
"Mcnuggets.",
    
"all over my fayayayayaaaaace!",
    
"a hot potato",
    
"Macs: miss a turn",
    
"a deep fried pizza",
    
"a traffic bollard",
    
"jupas [CENSORED]",
    
"a hot beef",
    
"a small bowl of clam chowder",
    
"THE WHITE STRIPES GAYEST FAN",
    
"albino TV news reporter",
    
"Joe Scarboroughs dead intern",
    
"a broken lamp",
    
"a few feet of timber",
    
"a Labour MP",
    
"a half empty can of fosters",
    
"distinctly under 9000",
    
"SNAAAAAAAAAAKE!!!!",
    
"LIQUUUUUUUUUID!!!!",
    
"Lasagna Bandit.",
    
"Cheesewheel.",
    
"Tony Danza wont like you using his hottub like that.",
    
"Jackx\'s latest rape victim.",
    
"My desk feels all tilted, does your desk feel tilted? I need to know if it\'s just me.",
    
"NARLY!",
    
"RAD!",
    
"The fierce last stand of all i am.",
    
"The first martini of the day.",
    
"Input detected! Opening time portal! Time coordinates not detected; default destination: 1984!!!!",
    
"Tribal physics (E=MC SPEARED)",
    
"Unruly boy.",
    
"TUBULAR!",
    
"Hot [CENSORED]!",
    
"Smokey.",
    
"The Bandit.",
    
"not avalible right now please try again on 11.06.2192"
}

public 
Plugin:myinfo = {
    
name NAME,
    
author "Mitchell",
    
description "Fakes the ranking system.",
    
version VERSION,
    
url "http://www.google.com/"
}

public 
OnPluginStart()
{
    
CreateConVar("fakerank_version"VERSIONNAMEFCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_NOTIFY);
    
RegConsoleCmd("say"Command_Say);
    
RegConsoleCmd("say_team"Command_Say);
}

public 
Action:Command_Say(clientargs){

    
decl String:text[192], String:command[64];

    new 
startidx 0;

    
GetCmdArgString(textsizeof(text));

    if (
text[strlen(text)-1] == '"')
    {        
        
text[strlen(text)-1] = '\0';
        
startidx 1;    
    }     

    if (
strcmp(command"say2"false) == 0)
    {
        
startidx += 4;
    }

    if (
strcmp(text[startidx], "/rank"false) == 0)
    {
        
PrintToChatAll("%Ns \x01Rank is \x04%s"clientranks[GetRandomInt(0111)]);
    }

    if (
strcmp(text[startidx], "rank"false) == 0)
    {
        
PrintToChatAll("%Ns \x01Rank is \x04%s"clientranks[GetRandomInt(0111)]);
    }
    return 
Plugin_Continue;

Cookies.net is offline
MPC
Junior Member
Join Date: Apr 2010
Old 03-04-2011 , 17:25   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #17

Ya, it works fine.
MPC is offline
MPC
Junior Member
Join Date: Apr 2010
Old 10-16-2011 , 22:48   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #18

Hey guys!

Been trying to edit the config you guys helped me with ages ago.

This is the error I am getting: error 001: expected token: "}", but found "-string-"

Not sure how to fix it, since I lack scripting skills .


Here's the code:

PHP Code:
#include <sourcemod> 

#define VERSION "0.1" 
#define NAME "Fake Rank" 


static const String:ranks[104][151] = { 
    
"a loser"
    
"classified by the CIA."
    
"secretly Vladimir Putin."
    
"Co-Prince of Andorra."
    
"Prime Minister of Italy."
    
"climbin in yo windows- snatchin yo people up"
    
"President of the United States."
    
"terrible at the game- but can suck cock like a pro!"
    
"grand worldwide yiffing champion for the third year in a row"
    
"acrid Meso-American bullshit"
    
"irrelevant, there is only Zuul"
    
"out of the closet"
    
"in the closet"
    
"perfectly cromulent"
    
"not high enough to be allowed out of the gimp suit yet"
    
"an overweight, over-the-hill, nicotine-stained, borderline alcoholic homophobe with a superiority complex and an unhealthy obsession with male bonding."
    
"a cad and a bounder."
    
"sees dead people."
    
"the possessor of an arsehole like a clown\\'s pocket."
    
"too damn high!."
    
"pretty terrible."
    
"excluding fees, tarriffs, and charges."
    
"Michael Jackson."
    
"Arse Licker By Appointment to His Majesty King George III."
    
"like- totally the best player ever."
    
"awesome sauce."
    
"only $999.99!"
    
"Mayor of London"
    
"Chris Hansen, from Dateline NBC, and we\\’re doing a story on men who meet with minors online for sex"
    
"Douke Noulkemn."
    
"irrelevant! You could never understand how i feel *fixes quiff*"
    
"herpsyphogonahlitissalmahalatosisaids - C."
    
"An accomplished pianist *begins scanning the room* Ladies? *creepy smile*.",
    
"a fox, caught by dogs.",
    
"Suspended in Gaffa.",
    
"A slutty woman who is clearly asking for it."
    
"Fifty-One out of Sixty-Eight."
    
"One sexy snowman!"
    
"A Sandwich."
    
"Fart Enthusiast."
    
"Mark Sanford."
    
"Hung like a horse."
    
"Nick Nolte."
    
"Misfortunate Placenta."
    
"Cockzilla."
    
"Butthorn."
    
"the man with the child in his eyes."
    
"The mechanisation of Soviet agriculture."
    
"UFO! dum dum dum dumdumdum! dee daa dee daa deedeedaa! WOOOOOOoooOOOOOOO! WOOOoo oo oo OOOOOOooooOOOOOoooo!"
    
"David\\'s stepladder."
    
"Kiss my snatch!"
    
"Roger Moore gave me gonorrhea."
    
"-CLASSIFIED-"
    
"Zionist reptile menace."
    
"HAN SOLO EAT A PINEAPPLE."
    
"A Snape/Harry fanfiction.",  
    
"Oppressor of the proletariat."
    
"A funky bass solo."
    
"WHAT\\'S GOING ON?!"
    
"Spiderdad."
    
"Robert Smith\\'s hair."
    
"A -Greek Philosopher- *WINK*"
    
"The innocent love between a young boy and an older man."
    
"Mcnuggets."
    
"all over my fayayayayaaaaace!"
    
"a hot potato"
    
"a hot beef"
    
"a small bowl of clam chowder"
    
"THE WHITE STRIPES GAYEST FAN"
    
"Joe Scarboroughs dead intern",  
    
"SNAAAAAAAAAAKE!!!!"
    
"LIQUUUUUUUUUID!!!!"
    
"Lasagna Bandit."
    
"Cheesewheel."
    
"My desk feels all tilted, does your desk feel tilted? I need to know if it\\'s just me."
    
"NARLY!"
    
"RAD!"
    
"The fierce last stand of all i am."
    
"The first martini of the day."
    
"Input detected! Opening time portal! Time coordinates not detected; default destination: 1984!!!!"
    
"Unruly boy."
    
"TUBULAR!",  
    
"Smokey."
    
"The Bandit."
    
"now slightly lower, since Ser Ilyn Payne cut your head off.",
    
"winter is coming...",
    
"about as overrated as Huey Lewis and The News.",
    
"Augy\\'s dude blazer."
    "a dance with dragons."
,
    
"a feast for crows.",
    
"a dream of spring.",
    
"a clash of kings.",
    
"a game of thrones.",
    
"a renly and loras hot explicit fuck scene.",
    
"funded by the Norwegian Government.",
    
"lookin\\’ good today, lookin\’ good in every way.",
    
"a WW2 realism clan member.",
    
"avaliable at www.theroyalrecuits.biz/viagra/notavirus.com.exe",
    
"avaliable at www.theroyalrecruits.com",
    
"a dreaded sunny day so lets go where we\'re wanted and I meet you at the cemetry gates.",
    
"one lucky falcon.",
    
"just another person in the world.",
    
"Tony Danza wont like you using his hottub like that.",
    
"not avalible right now please try again on 11.06.2192."


public 
Plugin:myinfo = { 
    
name NAME
    
author "Mitchell"
    
description "Fakes the ranking system."
    
version VERSION
    
url "http://www.google.com/" 


public 
OnPluginStart() 

    
CreateConVar("fakerank_version"VERSIONNAMEFCVAR_PLUGIN|FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_NOTIFY); 
    
RegConsoleCmd("say"Command_Say); 
    
RegConsoleCmd("say_team"Command_Say); 


public 
Action:Command_Say(clientargs){ 

    
decl String:text[192], String:command[64]; 

    new 
startidx 0

    
GetCmdArgString(textsizeof(text)); 

    if (
text[strlen(text)-1] == '"'
    {         
        
text[strlen(text)-1] = '\0'
        
startidx 1;     
    }      

    if (
strcmp(command"say2"false) == 0
    { 
        
startidx += 4
    } 

    if (
strcmp(text[startidx], "/rank"false) == 0
    { 
        
PrintToChatAll("%Ns \x01Rank is \x04%s"clientranks[GetRandomInt(0111)]); 
    } 

    if (
strcmp(text[startidx], "rank"false) == 0
    { 
        
PrintToChatAll("%Ns \x01Rank is \x04%s"clientranks[GetRandomInt(0111)]); 
    } 
    return 
Plugin_Continue

MPC is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-17-2011 , 09:16   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #19

- Line 95, missing comma (,)
- You have use different apostrophe (’), replace them (')
- Why douple slash (\\') ?? Need only one (\')
__________________
Do not Private Message @me
Bacardi is offline
MPC
Junior Member
Join Date: Apr 2010
Old 10-17-2011 , 09:48   Re: Funnyrank plugin for SourceMOD!
Reply With Quote #20

Not sure why I did that Thanks again Bacardi! Works like a charm. See you next time my scripting "skills" fail
MPC is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode