Script Request Thread #4
#1

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
Reply
#2

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.
Reply
#3

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
Reply
#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!
Reply
#5

Yeah, you should start selling them and get rich
Reply
#6

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
Reply
#7

Code:
msg = strval(params);
What the hell? Since when is the message a value?
Reply
#8

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
Reply
#9

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.
Reply
#10

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
Reply
#11

Can some one make a killing spree ?
I really need it I searched it everywhere
Reply
#12

Hey!
I'm a newbie at this file creating and alittle with pawno..
What i'm asking for if is anybody had 5-10 minutes to fix this script here?
What i want it to do is when people mods the car it has to detect if its a IsAnOwnableCar and if its not, it wont save, if it is it will save.

Also i have forwarded and everything for you, i just need you to put in the thing to detect if its a ownable or not, please could anybody help me
http://pastebin.com/m523d7548
Reply
#13

Quote:
Originally Posted by ░▒▓█ Skulls █▓▒░
Can some one make a killing spree ?
I really need it I searched it everywhere
Код:
#include <a_samp>

#define RED 0xF20000FF

new Rampage[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	Rampage[playerid] = 0;
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	new str[256];
	Rampage[playerid] = 0;
	Rampage[killerid]++;

  if(Rampage[killerid] == 5) {
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $500!");
			GivePlayerMoney(killerid,500);
	}
	else if(Rampage[killerid] == 10) {
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $1000!");
			GivePlayerMoney(killerid,1000);
	}
	else if(Rampage[killerid] == 15){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $1500!");
			GivePlayerMoney(killerid,1500);
	}
	else if(Rampage[killerid] == 20){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $2000!");
			GivePlayerMoney(killerid,2000);
	}
	else if(Rampage[killerid] == 25){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $2500!");
			GivePlayerMoney(killerid,2500);
	}
	else if(Rampage[killerid] == 30){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $3000!");
			GivePlayerMoney(killerid,3000);
	}
	else if(Rampage[killerid] == 35){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $3500!");
			GivePlayerMoney(killerid,3500);
		}
 	}
Reply
#14

Quote:
Originally Posted by Niixie
Hey, hit me up with a line where dudb saves playerfile in scriptfiles/serverfiles/users/
Thanks
Not true that nobody knows. c'mon
Reply
#15

Hey, I'm looking for a /respawnallcars cmd, wonder if you guys can fix it ^^
It's supposed to remove all CreateVehicle and set all AddStaticVehicle to respawn.
Peace
Reply
#16

Quote:
Originally Posted by Hannes
Hey, I'm looking for a /respawnallcars cmd, wonder if you guys can fix it ^^
Peace
pawn Код:
for(new v = 1; v <= MAX_VEHICLES; v++) SetVehicleToRespawn(v);
Reply
#17

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Hannes
Hey, I'm looking for a /respawnallcars cmd, wonder if you guys can fix it ^^
Peace
pawn Код:
for(new v = 1; v <= MAX_VEHICLES; v++) SetVehicleToRespawn(v);
Thanks
Peace
Reply
#18

I need to convert a script made for sa-mp 0.3. ( RC6 ) to sa-mp 0.3. I read some tutorials but still fail at converting, can somebody help me?

It's a Carlito RP edit made by Calgon.


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

Quote:
Originally Posted by [___
PotH3Ad ]
Quote:
Originally Posted by ░▒▓█ Skulls █▓▒░
Can some one make a killing spree ?
I really need it I searched it everywhere
Код:
#include <a_samp>

#define RED 0xF20000FF

new Rampage[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
	Rampage[playerid] = 0;
	return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
	new str[256];
	Rampage[playerid] = 0;
	Rampage[killerid]++;

  if(Rampage[killerid] == 5) {
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $500!");
			GivePlayerMoney(killerid,500);
	}
	else if(Rampage[killerid] == 10) {
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $1000!");
			GivePlayerMoney(killerid,1000);
	}
	else if(Rampage[killerid] == 15){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $1500!");
			GivePlayerMoney(killerid,1500);
	}
	else if(Rampage[killerid] == 20){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $2000!");
			GivePlayerMoney(killerid,2000);
	}
	else if(Rampage[killerid] == 25){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $2500!");
			GivePlayerMoney(killerid,2500);
	}
	else if(Rampage[killerid] == 30){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $3000!");
			GivePlayerMoney(killerid,3000);
	}
	else if(Rampage[killerid] == 35){
			GetPlayerName(killerid, str, sizeof(str) );
			format(str, sizeof(str), "%s has %d kills in a row!", str, Rampage[killerid] );
			SendClientMessageToAll(RED, str);
			SendClientMessage(killerid, RED, "Rampage Reward: You have been given $3500!");
			GivePlayerMoney(killerid,3500);
		}
 	}
Does this code reset the killers killing spree when he die?
Reply
#20

Quote:
Originally Posted by [03
Garsino ]
Does this code reset the killers killing spree when he die?
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  ...
  Rampage[playerid] = 0;
  ...
}
Maybe read the code next time?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)