CopTools (0.3c) -
Geso - 08.12.2010
Hey there,
Just a small thing I made while checking out the new functions, is a include containing the following functions:
-PutRiotShieldOnBack(playerid) Puts a shield on the player's back
-PutRiotShieldOnArm(playerid) Puts a shield on the player's arm
-GiveFlashLight(playerid) Puts a flashlight in the player's left hand
-GiveTazer(playerid) Puts a tazer in the player's left hand
-RemoveItems(playerid) Removes Items
It might not be free of bugs yet, cause I just made it and it only tested it on the normal cop skins. (It's possible that they don't fit well on some skins.)
You can't hold 2 shields at once, and same with the flashlight and the tazer, you can't have them both at the same time, in the same hand.
Screens:
Gallery:
/imageshack/gal.php?g...1208185229.png
Uploaded with
ImageShack.us
Use it by putting <cop-tools> at the top of your script as always.
Download(PasteBin)
Download(EasyUpload)
Example code on how to use it in a command:
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/arm", cmdtext, true, 10) == 0)
{
PutRiotShieldOnArm(playerid);
return 1;
}
if (strcmp("/back", cmdtext, true, 10) == 0)
{
PutRiotShieldOnBack(playerid);
return 1;
}
if (strcmp("/light", cmdtext, true, 10) == 0)
{
GiveFlashLight(playerid);
return 1;
}
if (strcmp("/tazer", cmdtext, true, 10) == 0)
{
GiveTazer(playerid);
return 1;
}
if (strcmp("/removeitems", cmdtext, true, 10) == 0)
{
RemoveItems(playerid);
return 1;
}
return 0;
}
Re: CopTools (0.3c) -
nielsbon1 - 08.12.2010
Cool thanx will test it when i got time.
Re : CopTools (0.3c) -
Peppe95 - 08.12.2010
Screen please?
Re: CopTools (0.3c) -
Scenario - 08.12.2010
Sounds good. Got some screens?
Re: CopTools (0.3c) -
Geso - 08.12.2010
Working on screens, if you already downloaded, re-download it, i changed some things.
I will make some delete commands too, give me second :P.
Re: CopTools (0.3c) -
The_Gangstas - 08.12.2010
always pastebin please.
Re: CopTools (0.3c) -
Flyfishes - 08.12.2010
You should have some function to remove the object?
Re : CopTools (0.3c) -
Hip-hop - 08.12.2010
RemoveItems(playerid)
AW: CopTools (0.3c) -
Trooper[Y] - 08.12.2010
Thanks for doing an include, that saves up to 50 lines
Re: CopTools (0.3c) -
wups - 08.12.2010
Does the shield work ok when you are crouched??
Re: CopTools (0.3c) -
Geso - 09.12.2010
Yes it does.
Re: CopTools (0.3c) -
ZmaXy - 09.12.2010
WoW Awesome
But
Код:
C:\Documents and Settings\Administrator\Desktop\Cyber Roleplay0.3c RC3\filterscripts\PD0.3c.pwn(66) : warning 203: symbol is never used: "RemoveItems"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
Help me ?
Re: CopTools (0.3c) -
wups - 09.12.2010
Don't worry about that error.
Re: CopTools (0.3c) -
[MWR]Blood - 18.12.2010
Nice, easy to make though
Re: CopTools (0.3c) -
Geso - 18.12.2010
Quote:
Originally Posted by Delux13
Nice, easy to make though
|
But if it's easy to make, why did noone make it before me?
Re: CopTools (0.3c) -
paramedic114 - 18.12.2010
i get error, i add #include <cop-tools> at the include lines and i get this error when i compile
Код:
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "GiveFlashLight"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "GiveTazer"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "PutRiotShieldOnArm"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "PutRiotShieldOnBack"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "RemoveItems"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Warnings.
i dont have line 41869, can someone help me please?
Re: CopTools (0.3c) -
Geso - 18.12.2010
Quote:
Originally Posted by paramedic114
i get error, i add #include <cop-tools> at the include lines and i get this error when i compile
Код:
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "GiveFlashLight"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "GiveTazer"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "PutRiotShieldOnArm"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "PutRiotShieldOnBack"
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41869) : warning 203: symbol is never used: "RemoveItems"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Warnings.
i dont have line 41869, can someone help me please?
|
This is nothing to worry about, just use the functions, and they will disappear
Re: CopTools (0.3c) -
Noss* - 18.12.2010
You got so many unique ideas.I love it,Call of duty style :P
Re: CopTools (0.3c) -
paramedic114 - 18.12.2010
what do you mean "just use the functions"
Re: CopTools (0.3c) -
Tessar - 18.12.2010
Nice one thanks!