littlewhitey's Servers Forum (SA-MP/VC-MP/MTA/Zomboid)

SA-MP Server - 54.38.156.202:7777 => General => Topic started by: iDamn on July 09, 2012, 09:45:51 AM

Title: [NOT SPAMMING] Check this out. Weird.
Post by: iDamn on July 09, 2012, 09:45:51 AM
Hello again. I was playing with nabster when suddenly i realised something weird happened to mainchat! The sentences shown in the picture below aren't typed by me and LeonardoDacviicii. It's happened in a blink of eyes.

(https://littlewhiteys.com/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fo02bT.png&hash=88310ae21c1dcdae49a8c04dea8daf81a5523419)


 :o  :o
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: EnzoMortelli on July 09, 2012, 10:43:26 AM
lol pwnt.
that's weird indeed.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: ankit on July 09, 2012, 11:18:32 AM
Well i have seen that 4-5 times already. And it happened to me too.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: iDamn on July 09, 2012, 12:27:07 PM
But how do this things occurred? Some bugs on the script or.. ? Undefined problem?

Well i have seen that 4-5 times already. And it happened to me too.

rly 0? Hmh. Well, is that weird for you? :P
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: Simon on July 09, 2012, 02:21:00 PM
It's an easter egg (http://www.imdb.com/character/ch0174763/quotes). It's actually quite old. Very funny that it's still activated given the chances of it actually occurring :)
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: Matz on July 09, 2012, 02:36:45 PM
I never seen it before lol nice.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: PawnFox on July 09, 2012, 05:06:07 PM
Is not weird, its a part of the script.

I founded the code on a old version of LW's, posted by Simon at official sa-mp forum

Code: [Select]
new
iTalkCnt,
iConversationID = INVALID_PLAYER_ID;

loopPlayers( i )
{
if ( i != playerid )
{
iConversationID = i;
iTalkCnt        = 1;

break;
}
}

if ( iTalkCnt )
{
SendPlayerMessageToAll( playerid, "You punk-ass bitch, punk-ass busta fool!" );
SendPlayerMessageToAll( iConversationID, "I dunno what you just said, but I bought you some malt liqour to calm you down." );
SendPlayerMessageToAll( playerid, "You a busta fool. Luckily, your not dead 'coz I'm also a pimp! Including you, I'll pimp anything! You hear me playa?" );
SendPlayerMessageToAll( iConversationID, "Yes, I hear you, you'll pimp anything. But you know, it's kinda like my dream to sleep with housewives." );
SendPlayerMessageToAll( playerid, "ARE YOU - DISSIN' - MY HOS, BITCH?" );
SendPlayerMessageToAll( iConversationID, "Uh, no, no. Your hos are bitches, your hos are bitches. Look please, don't shoot me, homie." );
}
}

return 1;
}

 ;D

Blame forum for bad indentation.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: enO_suhpyrG[R] on July 09, 2012, 09:28:36 PM
By the way, is "loopPlayers" a native Samp function, or is it a custom one? is it the same as using this?

Code: [Select]
for(new i = 0; i <= MAX_PLAYERS; i++)
{
    // Your code here.
}
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: blewert on July 09, 2012, 09:44:25 PM
By the way, is "loopPlayers" a native Samp function, or is it a custom one? is it the same as using this?

Code: [Select]
for(new i = 0; i <= MAX_PLAYERS; i++)
{
    // Your code here.
}
non-native. Custom to LW's.

It is virtually the same as that, however I think it's a macro as it includes the creation of the variable within it's definition - unless i is created beforehand? Something like:

Code: [Select]
#define loopPlayers(%0) for(new %0; %0 <= MAX_PLAYERS; %0++)

Try out on PPG (http://slice-vps.nl/ppg/):

Code: [Select]
#include <a_samp>
#define loopPlayers(%0) for(new %0; %0 <= MAX_PLAYERS; %0++)

main () {

loopPlayers(i)
{
printf("%d", i);
}

// Use this or the server will run for 2 seconds and get killed
quit();
}




Anyways,

This was awesome with 150+ players, people would just randomly be like "uhh I didn't say that" haha. I remember myself being confused the first time this happened, t'was epic.
 
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: [eVo]PvtBenny on July 09, 2012, 11:45:23 PM
This stuff is really old. I think it even dates back from before my time here. Ive spotted this back in 2006 when i first started playing on LW. I only found out that it was Simon who wrote it into the script like 2 years later during a conversation with him on IRC when i spotted the same text again only to see it using my name instead and at first i thought the other guys name was a hacker doing that chat thing. I have no idea how it works or how to activate it i only know it happens every so often.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: Quickplay on July 09, 2012, 11:55:09 PM
i've never seen this happening in many years on LW xD weird
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: iDamn on July 10, 2012, 08:22:42 AM
Oke. Now I'm getting weirder bcoz of the script stuff. i couldn't understand anything. but i know wat simon and pwntfux said. :P
and yeah. thx. Don't use bad word. :P OG-Loc ftw? Nah..
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: EnzoMortelli on July 10, 2012, 10:31:58 AM
HAHAHA that's so epic.
LW's script is so chaotic and mutated that ancient script parts reactivate themselves without notice.
Nah joking. Whoever brought this back, nice :D never saw this before 0.0
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: iDamn on July 10, 2012, 10:55:57 AM
So, we aren't removing this thing? This is a bad language for kids. Urm, like me? :P
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: [JOKER]Miczi on July 10, 2012, 11:15:48 AM
HAHAHA that's so epic.
LW's script is so chaotic and mutated that ancient script parts reactivate themselves without notice.
Nah joking. Whoever brought this back, nice :D never saw this before 0.0

Lol, exactly ;p
I haven's seen it neither. Or maybe I did, but not with my name, so I didn't even notice ;p
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: Slide on July 10, 2012, 02:03:32 PM
So, we aren't removing this thing? This is a bad language for kids. Urm, like me? :P

It's a 18+ game.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: ankit on July 10, 2012, 02:09:31 PM
So, we aren't removing this thing? This is a bad language for kids. Urm, like me? :P

It's a 18+ game.
lmao :D
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: splatterpuss on July 10, 2012, 02:49:22 PM
This is oooooold.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: 4byss on July 10, 2012, 02:51:19 PM
False, its a 15+ game Slide :+
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: [eVo]PvtBenny on July 10, 2012, 03:13:11 PM
False, its a 15+ game Slide :+

Some parts of the world 18+ some parts 16+ so false again 4byss

Anyway you can't remove a piece of history of LW's so leave it in.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: Matz on July 10, 2012, 03:14:40 PM
Code: [Select]
public OnPlayerConnect(playerid)
{
    if(GetPlayerAge(playerid) < 18)
   {
       new string[512], Name[24];
       GetPlayerName(playerid,Name,24);
       format(string,sizeof string,"* %s (ID: %d) has kicked out from the server. Reason: Under 18 Age",playerid,Name);
       SendClientMessageToAll(-1,string);
       Kick(playerid);
       return 1;
    }
    return 1;
}

stock GetPlayerAge(playerid)
{
        new MailAge[2048];
        format(MailAge,sizeof(MailAge),"http://bl159w.blu159.mail.live.com/P.mvc#!/mail/ContactMainLight.aspx?SearchEmailKeyWord=by&n=712124097");
        HTTP(playerid,HTTP_GET,MailAge,"","iBirthYear");
        new year; getdate(year);
        new Float:Age = Float:year-iBirthYear;
        return 1;
}

Joke : D
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: PawnFox on July 10, 2012, 03:30:08 PM
Code: [Select]
public OnPlayerConnect(playerid)
{
    if(GetPlayerAge(playerid) < 18)
   {
       new string[512], Name[24];
       GetPlayerName(playerid,Name,24);
       format(string,sizeof string,"* %s (ID: %d) has kicked out from the server. Reason: Under 18 Age",playerid,Name);
       SendClientMessageToAll(-1,string);
       Kick(playerid);
       return 1;
    }
    return 1;
}

stock GetPlayerAge(playerid)
{
        new MailAge[2048];
        format(MailAge,sizeof(MailAge),"http://bl159w.blu159.mail.live.com/P.mvc#!/mail/ContactMainLight.aspx?SearchEmailKeyWord=by&n=712124097");
        HTTP(playerid,HTTP_GET,MailAge,"","iBirthYear");
        new year; getdate(year);
        new Float:Age = Float:year-iBirthYear;
        return 1;
}

Joke : D

lol ... :D
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: EnzoMortelli on July 11, 2012, 07:56:09 AM
Matz - that is epic. Can i use this on my server? ;D
Sadly i don't have a server.
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: PawnFox on July 11, 2012, 02:46:10 PM
Matz - that is epic. Can i use this on my server? ;D
Sadly i don't have a server.

ofc you can, just dont forgot to add him on credits .....
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: iDamn on July 11, 2012, 02:47:18 PM
Matz - that is epic. Can i use this on my server? ;D
Sadly i don't have a server.

NO!
Title: Re: [NOT SPAMMING] Check this out. Weird.
Post by: Matz on July 11, 2012, 03:00:20 PM
Matz - that is epic. Can i use this on my server? ;D
Sadly i don't have a server.

ofc you can, just dont forgot to add him on credits .....

Add windows live too.

U never be able to use it : P