08.12.2010, 16:40
(
Last edited by Geso; 29/01/2011 at 11:00 AM.
)
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:
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;
}