Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,253
» Latest member: JamesBondKotas
» Forum threads: 12,306
» Forum posts: 21,438

Full Statistics

Online Users
There are currently 776 online users.
» 1 Member(s) | 773 Guest(s)
Google, Yandex, Client UKTodayHealth

Latest Threads
https://www.facebook.com/...
Forum: General Support
Last Post: UKTodayHealth
1 hour ago
» Replies: 0
» Views: 6
Ywca. Crystals. Api meani...
Forum: Downloads
Last Post: rwzhsyxlhuhyxl
4 hours ago
» Replies: 0
» Views: 11
Amazon.con. Poughkeepsie....
Forum: Downloads
Last Post: rwzhsyxlhuhyxl
4 hours ago
» Replies: 0
» Views: 11
Ride in Style: Custom Mot...
Forum: General Discussion
Last Post: shawnmendis
5 hours ago
» Replies: 0
» Views: 1
Central intelligence. Spa...
Forum: Downloads
Last Post: rwzhsyxlhuhyxl
5 hours ago
» Replies: 0
» Views: 13
Rhythm Revolution: How Sp...
Forum: Initialization & Setup Support
Last Post: archo11
5 hours ago
» Replies: 3
» Views: 490
web development
Forum: Products Discussion
Last Post: digitalversa
5 hours ago
» Replies: 1
» Views: 51
Giannis stats. Scarface. ...
Forum: Downloads
Last Post: rwzhsyxlhuhyxl
5 hours ago
» Replies: 0
» Views: 11
Pacers vs.  Dollars Sport...
Forum: Referrals System
Last Post: LealBarron
5 hours ago
» Replies: 1
» Views: 70
20ft Air Dancer | Eye-Cat...
Forum: General Discussion
Last Post: shawnmendis
6 hours ago
» Replies: 0
» Views: 1

 
Sad Hacking........ :(
Posted by: JohnTurbo - 05-04-2017, 10:49 AM - Forum: Problems & Suggestions - Replies (2)

Hello Guys, my sa-mp server this week is getting DDOSED & Bots Connecting hacking too many times so its getting down several times on the day please guys enable DDOS Protection for the free package please ???

Print this item

  VSDC Free Video Editor
Posted by: Debjit - 04-25-2017, 01:48 PM - Forum: Useful Softwares - No Replies

download from here:Click here to download
The program is meant for editing videos and creating different effects,its just a simple video editor which can be used by beginners to get into the world of video editing.This video editor is fully free but you can also upgrade it to the pro version.This video editor dosen't take much system resources which means you can use it on a low end pc too.
HAVE FUN!!!

Print this item

  Intro
Posted by: Debjit - 04-25-2017, 01:17 PM - Forum: Self Introduction - Replies (1)

Hello..Whatsup everybody its Debjit here

Print this item

  Hello
Posted by: ReBorn Dude - 04-24-2017, 02:41 PM - Forum: Self Introduction - Replies (4)

My name's Tom Carter, and I'm 24 years old. I'm an American, but I live in Pakistan (For some Reason). And I was too much happy when I saw that I can get free servers. And I'm sure you guys will help me out.

Print this item

  Theme
Posted by: Peki - 04-24-2017, 01:27 PM - Forum: General Discussion - Replies (7)

Whoah, this new blue theme is better.. Smile
What do you think guys?

Print this item

Big Grin Game Series
Posted by: joker123 - 04-21-2017, 08:03 PM - Forum: Video Games Series - Replies (11)

Could you tell me any game stories, like The Walking Dead?

Print this item

  Lance..?
Posted by: Peki - 04-19-2017, 08:27 PM - Forum: General Discussion - Replies (1)

Lance that's kinda rude what you did.. I posted a more than a week apllication for EHN and after 4-5 days you answered with 'Pending'. Than some guy posted application for EHN too, and tomorrow you replied him but me didn't.. After a week of replying on my post you didn't even look at it.. Sending you some emails pms and etc.. but nothing. Is it so hard to say that im declined or allowed..

Print this item

  Server Samp
Posted by: bYzZ - 04-14-2017, 04:41 PM - Forum: General Support - Replies (2)

Full name:-Marin Marinus
E-mail address:marin_marinus21@yahoo.com
Gamemode type:-RP
Server version:-0.3.7

Why would you like to acquire a free server from EHN?
Samp and love you very much and I want to have my own server that I wanted all my life, but lack of money I hope to be accepted
Any further comments/information? Thank you so much for free server.

Print this item

  Server requset
Posted by: alimaroco - 04-14-2017, 12:07 PM - Forum: General Support - Replies (1)

Full name:-Ali Maroco
E-mail address:-Jimiroso12@gmail.com
Gamemode type:-RP
Server version:-0.3.7

Why would you like to acquire a free server from EHN?Because I love SAMP so much and I want to own my own server
Any further comments/information? Thanks so much for hosting free server's

Print this item

  How to create a pickup that can be picked-up on-foot and in-vehicle
Posted by: alimaroco - 04-13-2017, 11:10 PM - Forum: Tutorials - Replies (1)

 
his allows pickups to be picked up on foot and in vehicle. This is not much of a tutorial.

Requirements

The Script

First we make a limit for pickups, since we're gonna use 2 pickups per 1 pickup in this tutorial, we're gonna cut the limit in half

Code:

Quote:#define MAX_PICKUPS_EX (MAX_PICKUPS / 2) // which is 2048, Limit has been cut in half


Secondly, create the enum data structure for the ID storing

g_P_ID repesents the real pickup model that can only be picked up on - foot, and g_P_Invisible_ID represents the invisible model that can only be picked up in vehicle

Code:

Quote:enum e_Pickups
{
   g_P_ID,
g_P_Invisible_ID
};

Thirdly we create the variables for the iterator and to manipulate the enum

Code:

Quote:new gPickupData[MAX_PICKUPS_EX][e_Pickups],

Iterator:gPickups[MAX_PICKUPS_EX];


Fourthly we make the pickup creation function

This function creates the model and an invisible pickup (19300) SA-MP 0.3c+ (Is it?)

Code:

Quote:stock CreateStaticPickup(model, Float:x, Float:y, Float:z, virtualworld = 0)
{
        new id = Iter_Free(gPickups);
        gPickups[id][g_P_ID] = CreatePickup(model, 14, x, y, z, virtualworld);
        gPickups[id][g_P_Invisible_ID] = CreatePickup(19300, 14, x, y, z, virtualworld);
        return id;
}


Fifthly we create a way to SAFELY destroy the pickups

Code:

Quote:stock DestroyStaticPickup(id, &next)
{
     if(Iter_Contains(gPickups, id)) return -1;
     DestroyPickup(gPickups[id][g_P_ID]);
     DestroyPickup(gPickups[id][g_P_Invisible_ID]);
     Iter_SafeRemove(gPickups, id, next);
     return next;
}


Lastly, we need someway to detect if either ONE of the pickups were entered, right? Don't worry we only need this ONCE, because your not gonna enter the pickup while your in both states, the callback only gets called in either state

Code:

Quote:public OnPlayerPickUpPickup(playerid, pickupid)
{
foreach(gPickups, p)
{
   if(gPickups[p][g_P_ID] != pickupid && gPickups[p][g_P_Invisible_ID] != pickupid) continue;
   // do shit here
   new next; // I don't even think that this is needed, but for safety, let's leave it.
    p = DestroyStaticPickup(p, next); // Let's SAFELY destroy the pickup without breaking the loop
break;
}
return 1;
}


The Full Code

Code:

Quote:#define MAX_PICKUPS_EX (MAX_PICKUPS / 2) // which is 2048, Limit has been cut in half

enum e_Pickups
{
   g_P_ID,
   g_P_Invisible_ID
};

new gPickupData[MAX_PICKUPS_EX][e_Pickups],
Iterator:gPickups[MAX_PICKUPS_EX];

stock CreateStaticPickup(model, Float:x, Float:y, Float:z, virtualworld = 0)
{
      new id = Iter_Free(gPickups);
      gPickups[id][g_P_ID] = CreatePickup(model, 14, x, y, z, virtualworld);
      gPickups[id][g_P_Invisible_ID] = CreatePickup(19300, 14, x, y, z, virtualworld);
      return id;
}

stock DestroyStaticPickup(id, &next)
{
       if(Iter_Contains(gPickups, id)) return -1;
       DestroyPickup(gPickups[id][g_P_ID]);
       DestroyPickup(gPickups[id][g_P_Invisible_ID]);
       Iter_SafeRemove(gPickups, id, next);
       return next;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
foreach(gPickups, p)
{
   if(gPickups[p][g_P_ID] != pickupid && gPickups[p][g_P_Invisible_ID] != pickupid) continue;
   // do shit here
   new next; // I don't even think that this is needed, but for safety, let's leave it.
    p = DestroyStaticPickup(p, next); // Let's SAFELY destroy the pickup without breaking the loop
break;
}
return 1;
}

- Enjoy

Credits
  • Kalcor & The SA-MP Team (For SA-MP and the Invisible Object)

Print this item