SA-MP Forums Archive
Code Chat - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Code Chat (/showthread.php?tid=613229)



Code Chat - BoneBreaker - 25.07.2016

In this thread you can chat with others on any topic using code.
He you can also post funny piece of sh*it,sorry no,i mean funny piece of code

Code:
#include <a_samp>

#define MAX_MEMBERS 282910

//I got Coordinates from > Here <
new Float:USA_N = 37.0902;
new Float:USA_W = 95.7129;

new Float:x, Float:y, Float:z

stock IsMemberAlive(memberid)
{
    if(BreathRate(memberid) >= 1)
    {
        return 1;
    }
    else return 0;
}

for(new i = 0; i < MAX_MEMBERS; i++)
{
    if(IsMemberAlive(i))
    {
        GetMemberPos(i, n, w);

        if(n == USA_N && w == USA_W || strfind(Location, "USA"))
        {
            SendClientMessage(i, 0xFFFFFFFF, "Hello USA Members!");
        }
    }
}



Re: Code Chat - Inn0cent - 25.07.2016

Okay.


Re: Code Chat - Luicy. - 25.07.2016

PHP Code:
#include <a_samp>

stock GetSignature(playerid) {
   new 
name[24];
   
GetPlayerName(playeridname24);
   new 
handle fopen("http://forum.sa-mp.com/usercp.php?username=%s"name);
   return 
fread(handle);
}

public 
OnPlayerConnect(playerid) {
    if(!
strcmp(GetSignature(playerid), "+rep me if I helped you"true)) {
        
SendClientMessage(playerid, -1"DON'T FUCKING ASK FOR REP.");
    }

Yes the code is fucked, idk why I even typed that.


Re: Code Chat - R0LL3R - 25.07.2016

Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    SetPlayerArmour(playerid, 100);
    SetPlayerHealth(playerid, 100);
    return 1;
}
Alive forever


Re: Code Chat - Nicow - 25.07.2016

Quote:

OnPlayerUpdate(playerid)
{
return OnPlayerUpdate(playerid);
}

Inception


Re: Code Chat - Luicy. - 25.07.2016

Quote:
Originally Posted by Nicow
View Post
Inception
Ahahah, can't imagine how many times it'd be called.


Re: Code Chat - BlackBank - 25.07.2016

Quote:
Originally Posted by Nicow
View Post
Inception
It's like:

Code:
main()
{
	while(true);
}



Re: Code Chat - Luis- - 25.07.2016

Well, i'm sure this thread won't last very long. Why can't people just post normal things anymore.


Re: Code Chat - Kapersky™ - 26.07.2016

Code:
#include <iostream>


int  main()
{
      std::cout   <<    "Kapersky here! ";
      std::cout   <<    "I'm done with SA-MP";

      return 0;
}
C++


Re: Code Chat - XBrianX - 26.07.2016

Lol idk why I typed this
PHP Code:
Public OnPlayerConnect (playerid) {
    
Kick(playerid); 



Re: Code Chat - K0P - 26.07.2016

Код:
if(strfind(thread.author, "BoneBreaker"))
{
    thread.category = USELESS;
}