SA-MP Forums

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

Closed Thread
 
Thread Tools Display Modes
Old 26/02/2013, 03:51 AM   #151
Insulin
Banned
 
Join Date: Nov 2012
Posts: 147
Reputation: 9
Default Re: Script Request Thread #6

1) Sniper Headshot FS player should get the kill
2) Dynamite, Homming missiles FS (Scripted WEapons) player should get the kill
3) Rustler boming FS with 2 sec interval in each drop, player should get the kill

__________________________________________________ ______________________

A /spree system which show's how many kills a player did
like

/spree = own kills and

/spree <id> = other's streak

Last edited by Insulin; 26/02/2013 at 06:12 AM.
Insulin is offline  
Old 26/02/2013, 01:00 PM   #152
MehranGta
Big Clucker
 
Join Date: Jul 2012
Location: CA - IR
Posts: 192
Reputation: -7
Default Re: Script Request Thread #6

Quote:
Originally Posted by MehranGta View Post
hi
i have 2 questions,
1.is there any dcmd [lux admin] /giveallscore [amount] , /giveallcash [amount] and /changename [newname]

2.can i compile lux admin with a tdm gamemode?
anyone?
will give +rep
MehranGta is offline  
Old 26/02/2013, 07:50 PM   #153
Hade.
Huge Clucker
 
Hade.'s Avatar
 
Join Date: Oct 2012
Location: Tallinn, Estonia
Posts: 210
Reputation: 16
Default Re: Script Request Thread #6

Can someone help me? How can i make my RP quiz like: If a player is new and answers all the questions the somehow it will save (in a folder orsomething). If not i will not save and i will show that he hasnt done it.

I really need it, i have the RP quiz but i dont want it to pop up every time..
__________________
Hade. is offline  
Old 26/02/2013, 08:38 PM   #154
Mitchy
Banned
 
Join Date: Feb 2013
Posts: 141
Reputation: -15
Default Re: [NEW] Anti-Money Cheat idea

Quote:
Originally Posted by Phil_Cutcliffe View Post
So everyone has a problem with Anti-Cheat right?

I'm getting pretty good with this scripting stuff and starting to understand how it is working. But I have an idea for
an Anti-Money cheat!

Ok so here is how it will work

IF getplayermoney OR getplayercash SENT "THIS IS OK" to the ANTI-CHEAT the ANTI-CHEAT will allow this to happen
and do nothing about it.

IF getplayermoney OR getplayercash DID NOT SEND "THIS IS OK" to the ANTI-CHEAT the ANTI-CHEAT will NOT allow this to happen and reverse the money (like normal anti cheats just if it was +500 it will -500)

I'm not sure if I explained myself correctly but if ANYONE knows how I can write this in code then we have ourselves a beauty of an Anti-Cheat!

That has gotta be +1 right there!!
Orrr just use my code:

Code:
	if(GetPlayerMoney(playerid) > Player[playerid][Money])
	{
	    new string[128];
	    format(string, sizeof(string), "AdminWarning: %s(%d) may possibly be money hacking.", RemoveUnderScore(playerid), playerid);
	    SendToAdmins(RED, string, 1);
	}
the if(GetPlayerMoney(playerid) > Player[playerid][Money]) is the line to detect if the money is higher.

Then i did a Warning incase it was money hack spam. It's simple
Mitchy is offline  
Old 27/02/2013, 07:52 PM   #155
gnoomen2
Big Clucker
 
Join Date: Feb 2011
Posts: 195
Reputation: 6
Default Re: Script Request Thread #6

Quote:
Originally Posted by Hade. View Post
Can someone help me? How can i make my RP quiz like: If a player is new and answers all the questions the somehow it will save (in a folder orsomething). If not i will not save and i will show that he hasnt done it.

I really need it, i have the RP quiz but i dont want it to pop up every time..
Check out this post: http://forum.sa-mp.com/showthread.php?t=273088 thats how to make it save.

Then what you will be saving is forexample this:
pawn Code:
if(PlayerInfo[playerid][pTutorial] == 0)
{
    // Show the tutorial.
}
At the end of the tutorial put:
pawn Code:
PlayerInfo[playerid][pTutorial] = 1;
gnoomen2 is offline  
Old 27/02/2013, 07:59 PM   #156
gnoomen2
Big Clucker
 
Join Date: Feb 2011
Posts: 195
Reputation: 6
Default Re: Script Request Thread #6

Quote:
Originally Posted by gnoomen2 View Post
I have been trying very much to understand how to save and load a object at it's last X Y Z cordinates, but i have failed all the time. I am asking you guys here to please help me out. Please use Y_INI and zcmd if you can.

And the command /dropobject will put the object at the players location. Where ever this object is before a server restart it will be created the next time the GM starts, and please try to make it small, and simple
Can anyone help me please! I really need help with this!
gnoomen2 is offline  
Old 28/02/2013, 06:27 PM   #157
Hade.
Huge Clucker
 
Hade.'s Avatar
 
Join Date: Oct 2012
Location: Tallinn, Estonia
Posts: 210
Reputation: 16
Default Re: Script Request Thread #6

Hey, i made a pizzajob but i want the pizzascooter to respawn at the last checkpoint, i have 6 pizzascooters pizzaroller1 ,2 and so on, can someone help me with that ?

_______________________________________

And i need help with my pns command, i wanted to make the command that when a player is near the pay n spray and typer /paranda (/repair in english) then his vehicle teleports in to the PNS freezes for a time amount and then teleports out and takes his money, but when i try the command all the stuff like you arent near it and arent in a vehicle and no money works but the command itself doesnt do anything, no freezing no nothing. Really need help.

Command:

Code:
CMD:paranda(playerid, params[])
{
    new PlayerState = GetPlayerState(playerid);
    if(IsPlayerInRangeOfPoint(playerid, 7.0, 2075.6091,-1831.4385,13.5545))
    {
        if (PlayerState == PLAYER_STATE_PASSENGER || PlayerState == PLAYER_STATE_ONFOOT)
        {
		    SendClientMessage(playerid, COLOR_RED, "Sa ei saa parandusse siseneda jala/kõrvalistujana!");
		    return 1;
	    }
	    else if(PlayerState == PLAYER_STATE_DRIVER)
	    {
            if(GetPlayerMoney(playerid) <3500) return SendClientMessage(playerid,COLOR_RED, "Sul ei ole piisavalt raha masina parandamiseks! [3500 krooni]");
            if(IsPlayerInAnyVehicle(playerid))
            {
                SetVehiclePos(playerid, 2065.4656,-1831.3871,13.3786);
            }
            else
            {
                SetPlayerPos(playerid, 2065.4656,-1831.3871,13.3786);
                TogglePlayerControllable(playerid, 0);
                SetTimerEx("PNSfreeze", 5000, false, "i", playerid);
                GivePlayerMoney(playerid,-3500);
                return 1;
            }
	    }
	}
	return 1;
}


forward PNSfreeze(playerid);
public PNSfreeze(playerid)
{
    TogglePlayerControllable(playerid, 1);
    SetVehiclePos(playerid, 2105.3506,-1775.3052,13.3918);
    return 1;
}
__________________

Last edited by Hade.; 28/02/2013 at 08:03 PM.
Hade. is offline  
Old 01/03/2013, 11:53 AM   #158
Sliceofdeath
Huge Clucker
 
Join Date: Jul 2012
Posts: 223
Reputation: 1
Default Re: Script Request Thread #6

Auto Message in public chat

I have seen much Filterscript like this but all have few bug , like : other cmd don't work and etc

Server version : 0.3x

Can someone help with it ?
Sliceofdeath is offline  
Old 01/03/2013, 04:18 PM   #159
mittukuttan
Big Clucker
 
Join Date: Jan 2013
Posts: 124
Reputation: -21
Default Re: Script Request Thread #6

can someone create these cmds plsssssssss
/housebuy
/housesell
/gotomyhouse
/lockmyhouse
/unlockmyhouse


with sscanf+zcmd plsssss
mittukuttan is offline  
Old 01/03/2013, 04:42 PM   #160
eng62ine
Little Clucker
 
Join Date: Feb 2013
Posts: 27
Reputation: -1
Default Re: Script Request Thread #6

Hey all, I'm looking for a firefighter dispatch script for my server. I saw the one on the forum and don't really like it. Essentially what I'm looking for is a firefighter faction/job. I'd like to have a random GPS marker come up, a dispatch message come over the chat screen (for firefighters only), explosions that have to be stopped by stepping into the GPS marker and maybe an automated message such as "Fire under control, all units clearing momentarily" after stepping into the marker. I would also appreciate a radio command (/r to communicate with firefighters only). Please pm me if your interested.
eng62ine is offline  
Closed Thread

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 01:42 PM
Script Request Thread #4 dugi Help Archive 1593 31/10/2010 12:08 PM
Re: Script Request Thread #3 clean180ollie Help Archive 836 05/01/2010 05:08 PM
Script Request Thread #2 Dol Help Archive 807 28/07/2009 10:09 AM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 12:15 PM


All times are GMT. The time now is 04:24 AM.


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