Jump to content
News Ticker
  • Developer applications are still open
  • Helper applications are still open
  • ba-rp.net:7777
Sign in to follow this  
GlorifiedPig

GlorifiedPig's Scripting Corner

Recommended Posts

GlorifiedPig

GlorifiedPig's Scripting Corner

Portfolio Site

 

Drone System [v1.0] - 11 December 2018

Video

 

This is a fairly simple script I made which allows you to control a drone. You are able to detonate the drone while you are flying it. I've made sure you can't bug the script by doing numerous checks if the player's alive or not and by removing the drone upon death. This doesn't mean there won't be bugs! Use it at your own risk.

 

Perhaps a modified version of this could be used on a roleplay server in some sort of military or police faction. Here's the preview:


You can find the script here. You need to have ZCmd and Sscanf in order for it to work.

 

Hide Nametags - 11 December 2018

 

An extremely simple script where you are able to hide nametags.

 

You can find the script here.

Edited by GlorifiedPig

Share this post


Link to post
Share on other sites
crimeson

ay rehasher hire this man

Share this post


Link to post
Share on other sites
GlorifiedPig
3 minutes ago, crimeson said:

ay rehasher hire this man

oohh yes

Edited by GlorifiedPig

Share this post


Link to post
Share on other sites
Crawler

What about your character? When you get in the drone I'm pretty sure that your character is unkillable and you can walk through it, and it can't get fixed unless you do it another way other than spawning the RC because that's how the game was made.

 

 

Edited by Crawler

Share this post


Link to post
Share on other sites
GlorifiedPig
6 minutes ago, Crawler said:

What about your character? When you get in the drone I'm pretty sure that your character is unkillable and you can walk through it, and it can't get fixed unless you do it another way other than spawning the RC because that's how the game was made.

 

 

You currently can't kill the player, however, I'll work on a way to fix this. I may have an idea how.

  • Like 1

Share this post


Link to post
Share on other sites
BurgundySuit

Drone system would be pretty cool to have IG

Share this post


Link to post
Share on other sites
GlorifiedPig
17 minutes ago, BurgundySuit said:

Drone system would be pretty cool to have IG

I could modify it to work for certain factions and make it seem more realistic instead of just getting it by a simple command.

Share this post


Link to post
Share on other sites
Pelayo

Interesting, nice work bro.

Share this post


Link to post
Share on other sites
GlorifiedPig

I'm taking suggestions.

 

12 hours ago, Pelayo said:

Interesting, nice work bro.

Thanks!

Share this post


Link to post
Share on other sites
y0Mike

For something like this, PVar's seem unnecessary.

 

Also... Why?

  for( new i = 0, j = GetPlayerPoolSize(); i <= j; i++ ) {

        if( i != playerid ) {

            ShowPlayerNameTagForPlayer( i, playerid, GetPVarInt( i, "NameTagsOn" ) );

        }

    }

 

for ( new i = 0; i < size; ++i )
{
    if ( i == playerid )
        continue;      
    ...
}

 

Other than that, good job.

 

  • Like 1

Share this post


Link to post
Share on other sites
Targus

Agree with @y0Mike, I am not entirely sure what made you use PVars instead of using normal variables.

Share this post


Link to post
Share on other sites
Brand

A very good job right there.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×