SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 05/01/2010, 04:07 PM   #1
dugi
Beta Tester
 
Join Date: Jun 2007
Location: Poland
Posts: 2,271
Reputation: 812
Default Script Request Thread #4

The old thread was getting a bit full so here is 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!

Archive:

Script Request Thread #1

Script Request Thread #2

Script Request Thread #3
dugi is offline  
Old 05/01/2010, 04:09 PM   #2
jameskmonger
High-roller
 
jameskmonger's Avatar
 
Join Date: Nov 2009
Location: London, England
Posts: 1,113
Reputation: 76
Default Re: Script Request Thread #4

Can someone make me a system that:
When you are in a car and type "/scrapcar", it sets a checkpoint at a location (I haven't decided where, just make it clear where the coords are that I have to edit), and tells you to go there and type "/scrapcar confirm", and when you get to the checkpoint, if you type "/scrapcar confirm", it deletes the car and gives you a certain amount of materials. I would like it made so that I will be able to change the amount of mats you get for different car types, loaded from a .ini file.
I would like it to be laid out like this:
CARNAME - MATAMOUNT
For example;
TURISMO - 120
GLENDALE - 69
I would also like it set so that if the car is not on that list, it says "INVALID VEHICLE", and removes the checkpoint.

If you have any questions, please PM me.
jameskmonger is offline  
Old 05/01/2010, 04:21 PM   #3
aspire5630
Huge Clucker
 
Join Date: Jul 2008
Posts: 284
Reputation: 0
Default Re: Script Request Thread #4

Can somone help me make like a bloodstain effect,
Say when a player loses health

then

Red circles will come on the screen, then slowley fade out,
like cod
aspire5630 is offline  
Old 05/01/2010, 04:21 PM   #4
[03]Garsino
Guest
 
Posts: n/a
Default Re: Script Request Thread #4

Quote:
Originally Posted by ραωпsтαг
Uhh, someone wanted a /carwhisper command? Made something real quick, ifd you look in the old thread also, someone else did one using sscanf.

Try this .. obviously pNick would be replaced by your custom function or you can use mine what I posted some posts back. Anyways, try this untested but should work, let me know.

Code:
dcmd_carwhisper(playerid, params[])
{
	new string[128], pCar, msg;
	pCar = GetPlayerVehicleID(playerid);
	msg = strval(params);
	if(!strlen(params)) return SendClientMessage(playerid, red, "USAGE: /carwhisper [message]");
	for(new i = 0; i < MAX_PLAYERS; i++)
	if(IsPlayerConnected(i) && GetPlayerVehicleID(i) == pCar)
	{
	  format(string, sizeof(string), "** (Car-Whisper) - %s[%d] %s", pNick(playerid), playerid, msg);
	  SendClientMessage(i, yellow, string);
	}
	return 1;
}
Have a cookie!
 
Old 05/01/2010, 04:27 PM   #5
[03]Garsino
Guest
 
Posts: n/a
Default Re: Script Request Thread #4

Yeah, you should start selling them and get rich
 
Old 05/01/2010, 04:31 PM   #6
Ritchie999
Gangsta
 
Join Date: Aug 2009
Location: Republic Of Ireland
Posts: 717
Reputation: 3
Default Re: Script Request Thread #4

Could someone make me a "/mask" system for Carlito's Roleplay for users who are above Level 6, and you got to buy it from 24/7?

The mask system will hide your name so you can walk up to someone and they wont be able to see your name over your head
__________________
Ritchie999 is offline  
Old 05/01/2010, 04:33 PM   #7
Striker_Moe
Gangsta
 
Join Date: Apr 2009
Posts: 569
Reputation: 1
Default Re: Script Request Thread #4

Code:
msg = strval(params);
What the hell? Since when is the message a value?
Striker_Moe is offline  
Old 05/01/2010, 04:39 PM   #8
~Dangun!
Big Clucker
 
Join Date: Dec 2009
Posts: 149
Reputation: 0
Default Re: Script Request Thread #4

Could someone help me fixing these errors?
Code:
(522) : error 017: undefined symbol "GetPlayerIP"
(523) : error 001: expected token: ")", but found "-identifier-"
(1549) : error 017: undefined symbol "GetPlayerIP"
my msn: jeffrey.vdveen@live.nl
xfire: nixpwn
~Dangun! is offline  
Old 05/01/2010, 04:41 PM   #9
[03]Garsino
Guest
 
Posts: n/a
Default Re: Script Request Thread #4

Quote:
Originally Posted by ραωпsтαг
Quote:
Originally Posted by [03
Garsino ]
Yeah, you should start selling them and get rich
Lol .. did it work?
havent tried it yet, gonna do now - but no errors while compiling.
 
Old 05/01/2010, 04:46 PM   #10
Correlli
Godfather
 
Correlli's Avatar
 
Join Date: May 2009
Location: Slovenia
Posts: 6,340
Reputation: 365
Default Re: Script Request Thread #4

Quote:
Originally Posted by ~Dangun!
Could someone help me fixing these errors?
Code:
(522) : error 017: undefined symbol "GetPlayerIP"
(523) : error 001: expected token: ")", but found "-identifier-"
(1549) : error 017: undefined symbol "GetPlayerIP"
my msn: jeffrey.vdveen@live.nl
xfire: nixpwn
It's GetPlayerIp, not GetPlayerIP
Correlli is offline  
 

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
Script Request Thread #5 jameskmonger Help Archive 8 06/03/2011 12:42 PM
Re: Script Request Thread #3 clean180ollie Help Archive 836 05/01/2010 04:08 PM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 11:15 AM


All times are GMT. The time now is 11:04 PM.


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