SA-MP Forums Archive
[GameMode] Cops and robbers Script :D - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Cops and robbers Script :D (/showthread.php?tid=269332)



Cops and robbers Script :D - chrism11 - 16.07.2011

Well, i was making a Cops and robbers script for a friend, but we stoped it so i thought i would give it to people that might want to use it, idk.

It Has many things including cops,army,swat,criminals with a few skills, and more. it have alot of robbings and a few extra buildings added, if wanted to make into robbings.

http://pastebin.com/h5JzQL8F

Thanks for the people that made:
sscanf2
streamer-incognitos
zcmd
dini


And here is a admin system


http://pastebin.com/pF7BitwF

Admin Commands:
Code:
goto
bring
setlevel
shootrocket
takecar
adjail
adwarn
adunjail
adfr
adunfr
addmer
adnoob
adban
adkick
adunban
adgetbanreason
adipban
adunipban
adcage
announce
gmx
setlevelname
setwlvl
setcarhp
giveweapon
adkill
sethp
setarmour
nuke
jetpack
breakcar
givecash
setcommandlevel
admute
adunmute
adcmds
setscore
spec
adarmy
specoff
adinfo
setbank
setbankname
setrobskill
setcoprank
remarmyname
changename
nick
You Can set the level required to use each command with setcommandlevel.
The Changename cmd works and changes the file name and all.

Add a folder in scriptfiles called CopsAndRobbersUsers.

If you have any questions, just ask.


Re: Cops and robbers Script :D - Pyr0 - 16.07.2011

emm i get this error.

Script[gamemodes/bestcnr.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

any idea how to fix it?


Re: Cops and robbers Script :D - chrism11 - 16.07.2011

add main() { } to the top of the script.


Re: Cops and robbers Script :D - FoxXx - 16.07.2011

error...
Code:
Script [gamemodes/crs.amx]: Run time error 19: "File Or Function is not found"



Re: Cops and robbers Script :D - Lorenc_ - 16.07.2011

pawn Code:
SetTimer("WantedLevelCheck",1000,true);
        SetTimer("TeamCheck",1000,true);
        SetTimer("CuffedTimer",1000,true);
        SetTimer("JailedTimer",1000,true);
        SetTimer("InfectedTimer",10000,true);
        SetTimer("RapedTimer",1000,true);
        SetTimer("RobbedTimer",1000,true);
        SetTimer("TakenDrugTimer",1000,true);
        SetTimer("GunDealAcceptTimer",120000,true);
        SetTimer("DrugDealAcceptTimer",120000,true);
        SetTimer("OneSecondTimer",1000,true);
        SetTimer("RobbedRecentlyTimer",1000,true);
        SetTimer("CopMoneyTimer",600000,true);
        SetTimer("AdvertisementTimer",300000,true);
        SetTimer("RapeRobEscapeRecentlyTimer",1000,true);
        SetTimer("VehicleTimer",1000,true);
        SetTimer("MechanicTimer",1000,true);
        SetTimer("TaxiTimer",1000,true);
        SetTimer("CarOffTimer",1000,true);
        SetTimer("pauseCheck", 1000, true);
        SetTimer("TrashFreeze", 5000, true);
        SetTimer("TruckFreeze", 5000, true);
        SetTimer("SpawnAllCars", 5000,false);
Does your gamemode even lag?


Re: Cops and robbers Script :D - Zh3r0 - 16.07.2011

Quote:
Originally Posted by Lorenc_
View Post
pawn Code:
SetTimer("WantedLevelCheck",1000,true);
        SetTimer("TeamCheck",1000,true);
        SetTimer("CuffedTimer",1000,true);
        SetTimer("JailedTimer",1000,true);
        SetTimer("InfectedTimer",10000,true);
        SetTimer("RapedTimer",1000,true);
        SetTimer("RobbedTimer",1000,true);
        SetTimer("TakenDrugTimer",1000,true);
        SetTimer("GunDealAcceptTimer",120000,true);
        SetTimer("DrugDealAcceptTimer",120000,true);
        SetTimer("OneSecondTimer",1000,true);
        SetTimer("RobbedRecentlyTimer",1000,true);
        SetTimer("CopMoneyTimer",600000,true);
        SetTimer("AdvertisementTimer",300000,true);
        SetTimer("RapeRobEscapeRecentlyTimer",1000,true);
        SetTimer("VehicleTimer",1000,true);
        SetTimer("MechanicTimer",1000,true);
        SetTimer("TaxiTimer",1000,true);
        SetTimer("CarOffTimer",1000,true);
        SetTimer("pauseCheck", 1000, true);
        SetTimer("TrashFreeze", 5000, true);
        SetTimer("TruckFreeze", 5000, true);
        SetTimer("SpawnAllCars", 5000,false);
Does your gamemode even lag?
Holy St. Lucia :O


Re: Cops and robbers Script :D - Retardedwolf - 16.07.2011

15 one second timers, amazing script.


Re: Cops and robbers Script :D - FoxXx - 16.07.2011

anybody can helpme? D:


Re: Cops and robbers Script :D - freshOrange - 16.07.2011

Have you got this?

pawn Code:
main()
{
}



Re: Cops and robbers Script :D - FoxXx - 16.07.2011

Quote:
Originally Posted by freshOrange
View Post
Have you got this?

pawn Code:
main()
{
}
yeah...