Script Request Thread #4
#61

Quote:
Originally Posted by jaheem
i have ben tring to make DIALOG_STYLE_INPUT AGE dialog but i faild
do any one can help me plz
There are many examples for that case of dialog. Search around if you're interested.
Reply
#62

Guys can somebody give me auto-repair vehicle script ?
Reply
#63

Quote:
Originally Posted by XxCozzaxX
Can i request a Spikestrips function using RC5?

UpdateVehicleDamageStatus Is how it would work i assume?
Quote:
Originally Posted by Brendan_Thomson
Could someone make this for me?
Reply
#64

Thanks mate
Reply
#65

Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
Here it is


http://forum.sa-mp.com/index.php?board=62.0


:P have fun
You keep posting people to the board not the post :P

There's the real one --> http://forum.sa-mp.com/index.php?topic=161912.0
Reply
#66

I need something that makes when you die, you spec your killer for 10 secs before you spawn again.

Example: Noob1 kills me, i spec Noob1 for 10 seconds before i spawn. If Noob1 dies when im speccing him, i spec Noob1's killer instead, just like Noob1 will do.
Reply
#67

Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
Here's that script

Edit of my old one, I released ages ago on forums

Some bugs fixed like if a player that is being spectated disconnects

And added your feature, so if your killer dies then you spectate his killer and if they die they you spectate their killer. Plus if player just dies then they can wither re-spawn instantly or have their camera look over a position of your choice, that is in the defines.

Report bugs to me by PM, and tell me if i should release this, I chose not to as there's millions of these anyway

Pastie: http://southclaw.pastebin.com/UAD0PHb5
Wow thats really useful with the defines and all, Thank you
Reply
#68

So guys can somebody help me with auto-repair and 1 more things:
1. Make vehicle menu like /vmenu > Fire Key (ALT for vehicle)
>Submission Key (2)

Fire key (ALT for vehicle)> Repair Vehicle
> Add NOS
> Jump Vehicle
> Flip Vehicle
> Speed up

If you press on each twice or just click proceed at the bottom of the box u will get(it will change as soon as u changeing it):

> Repair Vehicle : LCTRL Key : " Vehicle will now be repaired" and "Vehicle will be no longer repairing"
> Add NOS : LCTRL Key : "NOS will be added now" and " NOS Disabled"
> Jump Vehicle : LCTRL Key : "Vehicle jump activated" and "Vehicle jump deactivated"
> Flip Vehicle : LCTRL Key : "Vehicle flip activated" and "Vehicle flip deactivated"
> Speed up : LCTRL Key : "Speed up activated" and "Speed up deactivated"

>Submission key (2): >Repair Vehicle
>Add NOS
>Jump Vehicle
>Flip Vehicle
>Speed up


> Repair Vehicle : 2 Key : " Vehicle will now be repaired" and "Vehicle will be no longer repairing"
> Add NOS :2 Key : "NOS will be added now" and " NOS Disabled"
> Jump Vehicle : 2 Key : "Vehicle jump activated" and "Vehicle jump deactivated"
> Flip Vehicle : 2 Key : "Vehicle flip activated" and "Vehicle flip deactivated"
> Speed up : 2 Key : "Speed up activated" and "Speed up deactivated"



I shared with you IDEA can u share with me script file?
Reply
#69

Quote:
Originally Posted by Denasdc
blah blah blah(write a book about it)
"Live" help for small queries, not to get people to write whole scripts for you
Reply
#70

anyone can help with a simple countdown script for admins?
like this: /count [id] [id] [id] [id]
it counts from 5 to GO and the id's you enter will get a frozen (at the GO they need to get unfrozen)
anyone can help me?
thnx alot
Reply
#71

I made an /idea sort of thing, only it's /suggest.

http://forum.sa-mp.com/index.php?topic=166325.0
Reply
#72

Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by Dark_Kostas
Quote:
Originally Posted by [03
Garsino ]
Quote:
Originally Posted by RobinOwnz
Quote:
Originally Posted by adytzu32
Quote:
Originally Posted by RobinOwnz
I want that you can record yourself in-game, and then NPC's are replaying you. So you can record yourself, and NPC's are doing the same thing as you did.
i think it's imposible
It is possible. I saw it once on a server.
Yeah, I think there is a filterscript on the forums too.
You need to use the npc_record filterscript which is included on the server package. Check THIS out
No, thats not what we're talking about. Learn to read.
I mean this:
Bots on German Freeroam Server .
btw you dont see that he recorded it first, but he actually did, and played the NPC.

So, im asking for that ;o
Reply
#73




Hello Guys!!! I need a team balancer for my server! i have 5 teams.



My Script:
http://pastebin.com/iaEkejqi



Please help me!
Reply
#74

Hey im looking again for a scripter. I will pay 30Ђ through paypal. Gamemode depends on RP.
PM me, if interested.
Reply
#75

I need someone to make this for me.

For a more advance and secure system. I want to use files. Save the filename as the vehicleid, In the file itsself save the owner name.

When you enter a car check the vehicle id to see if there is any valid files with the same vehicle id. If so check the name from inside the file to your name.

If your not the owner read the file and display the owner by looking inside the file.


How can i do this? Heres my buying a car code:

Код:
new buyername[24];
GetPlayerName(playerid,buyername, 24);
if(dialogid == GROTTI_DIALOG)
{
if(listitem == 0)
{
if(GetPlayerMoney(playerid) <= 39999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Sultan car ($40000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(560, 2174.2114,1421.0642,10.5913,91.0247, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Sultan vehicle from AutoBahn for $40000");
GivePlayerMoney(playerid,-40000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Sultan car from AutoBahn ($40000)",buyername,playerid);
}
if(listitem == 1)
{
if(GetPlayerMoney(playerid) <= 59999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Elegy car ($60000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(562, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Elegy vehicle from AutoBahn for $60000");
GivePlayerMoney(playerid,-60000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Elegy car from AutoBahn ($60000)",buyername,playerid);
}
if(listitem==2)
{
if(GetPlayerMoney(playerid) <= 79999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Jester car ($80000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(559, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Jester vehicle from AutoBahn for $80000");
GivePlayerMoney(playerid,-80000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Jester car from AutoBahn ($80000)",buyername,playerid);
}
if(listitem==3)
{
if(GetPlayerMoney(playerid) <= 99999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Cheetah car ($100000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(415, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Cheetah vehicle from AutoBahn for $100000");
GivePlayerMoney(playerid,-100000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Cheetah car from AutoBahn ($100000)",buyername,playerid);
}
if(listitem==4)
{
if(GetPlayerMoney(playerid) <= 119999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Turismo car ($120000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(451, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Turismo vehicle from AutoBahn for $120000");
GivePlayerMoney(playerid,-120000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Turismo car from AutoBahn ($120000)",buyername,playerid);
}
if(listitem==5)
{
if(GetPlayerMoney(playerid) <= 139999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Infernus vehicle ($140000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(411, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Infernus vehicle from AutoBahn for $140000");
GivePlayerMoney(playerid,-140000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Infernus vehicle from AutoBahn ($140000)",buyername,playerid);
}
if(listitem==6)
{
if(GetPlayerMoney(playerid) <= 139999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a NRG500 motorbike ($140000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(522, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a NRG500 motorbike from AutoBahn for $140000");
GivePlayerMoney(playerid,-140000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a NRG500 motorbike from AutoBahn ($140000)",buyername,playerid);
}
if(listitem==7)
{
if(GetPlayerMoney(playerid) <= 139999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a FCR-900 motorbike ($140000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(521, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a FCR-900 motorbike from AutoBahn for $140000");
GivePlayerMoney(playerid,-140000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a FCR-900 motorbike from AutoBahn ($140000)",buyername,playerid);
}
if(listitem==8)
{
if(GetPlayerMoney(playerid) <= 139999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Taxi ($100000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(420, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Taxi from AutoBahn for $100000");
GivePlayerMoney(playerid,-140000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Taxi from AutoBahn ($100000)",buyername,playerid);
}
if(listitem==9)
{
if(GetPlayerMoney(playerid) <= 49999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a Uranus vehicle ($50000)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(558, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a Uranus vehicle from AutoBahn for $50000");
GivePlayerMoney(playerid,-50000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a Uranus car from AutoBahn ($50000)",buyername,playerid);
}
if(listitem==10)
{
if(GetPlayerMoney(playerid) <= 49999) {
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchase Failed_|");
SendClientMessage(playerid, COLOR_ERROR, "You cannot afford to buy a BMX bike ($100)");
return 1;
}
new boughtcar;
GetPlayerName(playerid,buyername,24);
boughtcar = CreateVehicle(481, 560.4965,-1286.8813,16.9363,8.4817, -1, -1, 99999999999);
BoughtCars[boughtcar] =999;
BoughtCarsOwner[boughtcar] =playerid;
SendClientMessage(playerid, 0xA9A9A9AA, "|_Vehicle Purchased_|");
SendClientMessage(playerid, 0x00C7FFAA, "You have bought a BMX bike from AutoBahn for $100");
GivePlayerMoney(playerid,-50000);
PutPlayerInVehicle(playerid, boughtcar, 0);
printf("**(CAR PURCHASE)** %s(%d) has purchased a BMX bike from AutoBahn ($100)",buyername,playerid);
}
}
return 1;
}
Reply
#76

You'll have to give each car a unique ID, because if your server restarts every vehicle will have a different ID depending on which spawns first, or if a vehicle is destroyed and another one is spawned, that vehicle takes it's ID.
Reply
#77

Quote:
Originally Posted by biltong
You'll have to give each car a unique ID, because if your server restarts every vehicle will have a different ID depending on which spawns first, or if a vehicle is destroyed and another one is spawned, that vehicle takes it's ID.
Thats what i was told. I'm not good at scripting to be able to do all this. Lol. I actually want the bought cars to disappear when the server restarts. So i don't think i would need this.


But the saving cars part and then checking if the player is the right owner is kinda hard. If someone could start me off, i could continue. Or if someone wants, my last 3 dollers in paypal is dieing to leave LOL.
Reply
#78

Identifying vehicles should work like this: turismo1=AddStaticVehicle(blabla)
Reply
#79

i want filter-script that let you listen to own music in alhambra! thanks
Reply
#80

I want a full GetPlayerName function, dont tell me to search just give!
Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)