SA-MP Forums

Go Back   SA-MP Forums > Other > Everything and Nothing

Reply
 
Thread Tools Display Modes
Old 25/07/2016, 09:26 PM   #1
BoneBreaker
Banned
 
Join Date: Jul 2016
Posts: 5
Reputation: 1
Default Code Chat

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!");
        }
    }
}
BoneBreaker is offline   Reply With Quote
Old 25/07/2016, 09:31 PM   #2
Inn0cent
Huge Clucker
 
Inn0cent's Avatar
 
Join Date: May 2013
Location: Pakistan
Posts: 355
Reputation: 45
Default Re: Code Chat

Okay.
__________________
Inn0cent is offline   Reply With Quote
Old 25/07/2016, 09:32 PM   #3
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 778
Reputation: 79
Default Re: Code Chat

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.
Luicy. is offline   Reply With Quote
Old 25/07/2016, 09:39 PM   #4
R0LL3R
Little Clucker
 
Join Date: Feb 2016
Posts: 38
Reputation: 13
Default Re: Code Chat

Code:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
    SetPlayerArmour(playerid, 100);
    SetPlayerHealth(playerid, 100);
    return 1;
}
Alive forever
R0LL3R is offline   Reply With Quote
Old 25/07/2016, 09:42 PM   #5
Nicow
Big Clucker
 
Nicow's Avatar
 
Join Date: Oct 2012
Location: France
Posts: 95
Reputation: 60
Default Re: Code Chat

Quote:
OnPlayerUpdate(playerid)
{
return OnPlayerUpdate(playerid);
}
Inception
__________________

Nicow is offline   Reply With Quote
Old 25/07/2016, 10:10 PM   #6
Luicy.
Banned
 
Join Date: Dec 2014
Location: Sweden, Skövde
Posts: 778
Reputation: 79
Default Re: Code Chat

Quote:
Originally Posted by Nicow View Post
Inception
Ahahah, can't imagine how many times it'd be called.
Luicy. is offline   Reply With Quote
Old 25/07/2016, 10:20 PM   #7
BlackBank
Gangsta
 
Join Date: Dec 2010
Location: The Netherlands
Posts: 523
Reputation: 437
Default Re: Code Chat

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

Code:
main()
{
	while(true);
}
BlackBank is offline   Reply With Quote
Old 25/07/2016, 11:44 PM   #8
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 3,916
Reputation: 378
Default Re: Code Chat

Well, i'm sure this thread won't last very long. Why can't people just post normal things anymore.
__________________
Luis- is offline   Reply With Quote
Old 26/07/2016, 08:05 AM   #9
Kapersky™
Gangsta
 
Kapersky™'s Avatar
 
Join Date: Jul 2014
Location: !ncredible India.
Posts: 698
Reputation: 344
Default Re: Code Chat

Code:
#include <iostream>


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

      return 0;
}
C++
Kapersky™ is offline   Reply With Quote
Old 26/07/2016, 08:20 AM   #10
XBrianX
Huge Clucker
 
Join Date: May 2015
Location: Dubai
Posts: 459
Reputation: 75
Default Re: Code Chat

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

XBrianX is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help with a code that sends a chat message to some people. Dylan_Madigan69 Scripting Help 0 18/12/2013 01:23 AM
GUY CLEAR CHAT NOT WORK CHECK CODE Bilawal2050 Help Archive 6 09/04/2011 05:00 PM
script code /n chat ConsoleX Help Archive 8 21/03/2011 05:33 PM
admin chat code has a bug BlackWolf120 Help Archive 15 16/03/2011 09:01 PM
/(n)ewbie chat code REDRUM Help Archive 4 26/05/2009 10:34 AM


All times are GMT. The time now is 07:48 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.