Script Request Thread #5
#1

The 4th script request thread was getting too full, therefore I decided to open a new one.

This thread is for people to post gamemode and filterscript ideas, in an effort to find people willing to help them make it. Please keep all requests to this thread, and do NOT flame or bump!


Script request archive:

Script Request Thread #4

Script Request Thread #3

Script Request Thread #2

Script Request Thread #1
Reply
#2

5 already, spammers! Wonder is someone can make like updating textdraw for distance ran like this kinda....


Code:
Distance Ran:
-------------------------
|          |            |        Orange for where your at now
-------------------------
Reply
#3

Quote:
Originally Posted by willsuckformoney
View Post
5 already, spammers! Wonder is someone can make like updating textdraw for distance ran like this kinda....


Code:
Distance Ran:
-------------------------
|          |            |        Orange for where your at now
-------------------------
5 topics in 2-3 years isn't too bad...

About your question: It should be pretty simple actually.
All you need is an updating timer (or OnPlayerUpdate) to get the player's distance to the point, then take the percent of that distance, and update the textdraw each percent (or each 5th percent, 10th etc..)

So let's say the distance is 100 yards (easiest example)
You run 10 yards, and that spot for where are you now moves one "spot" to the right.

You could use GetPlayerDistanceToPoint to make this work easily.
pawn Code:
stock Float:GetPlayerDistanceToPoint(playerid, Float:x, Float:y, Float:z)
{
    new
        Float:pX,
        Float:pY,
        Float:pZ;

    GetPlayerPos(playerid, px, py, pz);
    return floatsqroot(( floatpower( x-pX, 2 ) + floatpower( y-pY, 2 )) + floatpower( z-pZ, 2 ));
}
Just get the percent of the distance.

pawn Code:
new iPercent = (( floatround( GetPlayerDistanceToPoint( playerid, x, y, z )) / distance_to_destination ) * 100 );
Then do as I said, update it every percent, every 5th percent, every 10th percent... Anything that will fit you well.

pawn Code:
if( iPercent > 9 && iPercent < 20 )
{
    //update
}
else if( iPercent > 19 && iPercent < 30 )
//continue
Reply
#4

There are also libraries specifically designed for making progress meters, it shouldn\'t be hard to use those.


And LarzI: How many times have I told you about floatsqroot?
Reply
#5

Quote:
Originally Posted by Y_Less
View Post
There are also libraries specifically designed for making progress meters, it shouldn't be hard to use those.

And LarzI: How many times have I told you about floatsqroot?
Lots of times, but I always forget.
And I just copied the function from somewhere, just ******'d it.
Reply
#6

Will try later.
Reply
#7

Quote:
Originally Posted by Brian_Furious
Посмотреть сообщение
It wasnt too full...Click Here The Script Request Thread #5 is already exits
Yeah, but a normal user made it, when BETA Testers or Moderators make it, people reply more :P

+ 800th post

This forum requires that you wait 120 seconds between posts. Please try again in 20 seconds.

Edit: Um, It wasn't my 800th post, even though before I posted this, I only had 799 posts, I posted here and I posted somewhere else but It's still only 800; nevermind
Reply
#8

Could sombody make me a timer that counts down from 10 mins above the players cash, thanks
Reply
#9

i need a script that enables cops to cuff a player but, that player can still run but not sprint nor drive/ride i have asked people and most say 'yes, its possible"? if i could get this it would be AWESOME!, thanks.
Reply
#10

Hi , i`m searching for a script that can make a new job , Prison Guard ,
i want that job to have some commands:
/on ( Makes the player on duty and teleports him at the prison )
/off ( Makes the player off duty and teleports him to his house / normal spawn place )
/Weapons ( Only when he`s on duty : gives him a sniper and a M4a1 )
/Alert [playername/id] ( Announces the server that a prissoner has escaped )
And also if possible , at payday , depending on how many minutes he guarded the prison to get a amount of money
10 minutes = 10.000 $
20 minutes = 20.000 $
30 minutes = 40.000 $
50 minutes = 50.000 $
If possible please help me please Thank You
Reply
#11

Can someone make me a random last man standing system?

example:

every 10 minutes server will start a random fight system "random fight started. type /rf join to join random fight".
It will take 30 seconds and then the players that typed /rf join will spawn inside a big interior. Then after the players spawned it will say in chat ''Random fight started .(how many players joined)10 practisians.'' Then the players will fight and the last alive will win 5000 and spawn.
Remove anti-team kill teammates.
Reply
#12

Hello i need script /takegun
Guns m4 , ak47 , deagle , mp5
tnx a lot
on this command player can take these guns for free
Reply
#13

tnx again
Reply
#14

Quote:
Originally Posted by ThunD3r
View Post
Hi , i`m searching for a script that can make a new job , Prison Guard ,
i want that job to have some commands:
/on ( Makes the player on duty and teleports him at the prison )
/off ( Makes the player off duty and teleports him to his house / normal spawn place )
/Weapons ( Only when he`s on duty : gives him a sniper and a M4a1 )
/Alert [playername/id] ( Announces the server that a prissoner has escaped )
And also if possible , at payday , depending on how many minutes he guarded the prison to get a amount of money
10 minutes = 10.000 $
20 minutes = 20.000 $
30 minutes = 40.000 $
50 minutes = 50.000 $
If possible please help me please Thank You
You have to do the payday by yourself, just make a variable that stores the minutes.

Requirements:
DCMD, sscanf
A bit PAWN knowledge

To do:
Add the follow lines below OnPlayerCommandText:
Code:
dcmd(on, 2, cmdtext);
dcmd(off, 3, cmdtext);
dcmd(weapons, 7, cmdtext);
dcmd(alert, 5, cmdtext);
Script:
pawn Code:
dcmd_on(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFFF, "You are now a Prison Guard");
    SetPlayerPos(playerid, prisonx, prisony, prisonz);
    SetPVarInt(playerid, "Guard", 1);
}

dcmd_off(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFFF, "You are no longer a Prison Guard");
    SpawnPlayer(playerid);
    SetPVarInt(playerid, "Guard", 0);
}

dcmd_weapons(playerid, params[])
{
    if(!(GetPVarInt(playerid, "Guard") == 1)) return SendClientMessage(playerid, 0xFFFFFFFF, "Sorry, you must be a Prison Guard if you want weapons");
    SendClientMessage(playerid, 0xFFFFFFFF, "[PRISON]: You have received 250 sniper bullets and 1500 M4 bullets");
    GivePlayerWeapon(playerid, 31, 1500);
    GivePlayerWeapon(playerid, 34, 250);
}

dcmd_alert(playerid, params[])
{
    new id;
    if(sscanf("u", id)) SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /alert [playername/id]");
    else
    {
        GameTextForAll("~w~A ~r~prisoner ~w~is escapped!", 3000, 3);
    }
}
Reply
#15

nvm............
Reply
#16

Ok I would like two things the first one is easy, the second one is pretty complex.

1. Not sure if this is possible, but make it to where stoplights turn green if a emergency vehicle is moving through with their sirens on. So the lights that the direction the cop is going turn green and the other turn red. Not sure if this is even possible, but it would be cool.


2. Number two is car bugs. A player has to buy a reciever and a bug from a 24/7 store. When the player gets in the car they type /placebug then the bug is placed. If they don't have a reciever though the bug doesnt work. If they sucessfully place the bug then a red dot appears on the map of where the car is. If the person wants to take the bug out of the car they do /removebug. Now if a person doesn't want to be followed they can do /checkbugs and then it will display if there are any bugs in the car or not. If any are found they are removed and the dot disappears from the bug placers map. Also if it is possible the bug placer can listen in on the conversations in the bugged car.
Its a complex idea, if you need a better description I can give you one.
Reply
#17

Quote:
Originally Posted by Kazzy10
Посмотреть сообщение
Hello i need script /takegun
Guns m4 , ak47 , deagle , mp5
tnx a lot
on this command player can take these guns for free
Well, M4 and AK47 are both in the same slot class So you can't have both
But

pawn Код:
if(!strcmp(cmdtext, '/takegun', true))
    {
       GivePlayerWeapon(playerid, 31, 9999);
       GivePlayerWeapon(playerid, 29, 9999);
       GivePlayerWeapon(playerid, 24, 9999);
        return 1;
    }
OR For an AK47

pawn Код:
if(!strcmp(cmdtext, '/takegun1', true))
    {
       GivePlayerWeapon(playerid, 30, 9999);
       GivePlayerWeapon(playerid, 29, 9999);
       GivePlayerWeapon(playerid, 24, 9999);
        return 1;
    }
Reply
#18

hello, I see a lot of people asking for help to make a team balancer, and I'm one of them, I would appreciate if you guys help me/others by showing us a code.
Reply
#19

Im requesting something simple, /status *Sad* So creates a 3dTextLabel in the characters head.

cool if someone could bring it to me, thanks.
Reply
#20

nvm..............
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)