SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 18/12/2010, 09:18 PM   #21
jameskmonger
High-roller
 
jameskmonger's Avatar
 
Join Date: Nov 2009
Location: London, England
Posts: 1,113
Reputation: 76
Default Re: CopTools (0.3c)

Is the riot shield bulletproof?
jameskmonger is offline   Reply With Quote
Old 19/12/2010, 08:43 AM   #22
Geso
Huge Clucker
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 380
Reputation: 14
Default Re: CopTools (0.3c)

Quote:
Originally Posted by paramedic114 View Post
what do you mean "just use the functions"
Functions:

GiveFlashLight(playerid)
GiveTazer(playerid)
etc.


And unfortunately the shield is not bullet proof, but none of the objects that a player can hold are solid.
Geso is offline   Reply With Quote
Old 19/12/2010, 08:53 AM   #23
knackworst
Gangsta
 
knackworst's Avatar
 
Join Date: Sep 2010
Location: Belgium
Posts: 913
Reputation: 27
Default Re: CopTools (0.3c)

nice! but you should update with the police helmet, it's a new object in 0.3C 5
knackworst is offline   Reply With Quote
Old 19/12/2010, 12:01 PM   #24
paramedic114
Big Clucker
 
paramedic114's Avatar
 
Join Date: Jul 2010
Location: UK
Posts: 74
Reputation: 3
Default Re: CopTools (0.3c)

Quote:
Originally Posted by Geso View Post
Functions:

GiveFlashLight(playerid)
GiveTazer(playerid)
etc.


And unfortunately the shield is not bullet proof, but none of the objects that a player can hold are solid.
where do i put them and how do i put them....?
__________________
Tom


Dont play SAMP any more


Inbox me if you need help setting up a forum - Medium-Large Communities only (Min 20 players regularly) (IPB/vB preferably)
paramedic114 is offline   Reply With Quote
Old 19/12/2010, 12:07 PM   #25
Geso
Huge Clucker
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 380
Reputation: 14
Default Re: CopTools (0.3c)

Example commands:

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;
    }
    return 0;
}
Geso is offline   Reply With Quote
Old 19/12/2010, 12:08 PM   #26
paramedic114
Big Clucker
 
paramedic114's Avatar
 
Join Date: Jul 2010
Location: UK
Posts: 74
Reputation: 3
Default Re: CopTools (0.3c)

ah, thanks




EDIT:
Code:
C:\Documents and Settings\Tom Attewell\My Documents\samp_0\gamemodes\sarp.pwn(41873) : error 021: symbol already defined: "OnPlayerCommandText"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Code:
41870:   WasCheckBy[playerid] = 999;
41871:   }
41872:   public OnPlayerCommandText(playerid, cmdtext[])
41873:   {
41874:   if (strcmp("/getshield", cmdtext, true, 10) == 0)
41875:   {

tried loads of things any ideas?
__________________
Tom


Dont play SAMP any more


Inbox me if you need help setting up a forum - Medium-Large Communities only (Min 20 players regularly) (IPB/vB preferably)
paramedic114 is offline   Reply With Quote
Old 19/12/2010, 01:47 PM   #27
paramedic114
Big Clucker
 
paramedic114's Avatar
 
Join Date: Jul 2010
Location: UK
Posts: 74
Reputation: 3
Default Re: CopTools (0.3c)

bump
__________________
Tom


Dont play SAMP any more


Inbox me if you need help setting up a forum - Medium-Large Communities only (Min 20 players regularly) (IPB/vB preferably)
paramedic114 is offline   Reply With Quote
Old 19/12/2010, 01:49 PM   #28
Geso
Huge Clucker
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 380
Reputation: 14
Default Re: CopTools (0.3c)

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;
    }
//other commands
//other commands
//other commands
    return 0;


}

Add them in the callback, next to the other commands.
Geso is offline   Reply With Quote
Old 19/12/2010, 01:57 PM   #29
paramedic114
Big Clucker
 
paramedic114's Avatar
 
Join Date: Jul 2010
Location: UK
Posts: 74
Reputation: 3
Default Re: CopTools (0.3c)

sorry to ask but im still learning pawno, add them in callabcks?
__________________
Tom


Dont play SAMP any more


Inbox me if you need help setting up a forum - Medium-Large Communities only (Min 20 players regularly) (IPB/vB preferably)
paramedic114 is offline   Reply With Quote
Old 19/12/2010, 01:59 PM   #30
Geso
Huge Clucker
 
Join Date: Jan 2010
Location: Mauna Kea, Hawaii
Posts: 380
Reputation: 14
Default Re: CopTools (0.3c)

Quote:
Originally Posted by paramedic114 View Post
sorry to ask but im still learning pawno, add them in callabcks?
Code:
WasCheckBy[playerid] = 999;
 }
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/getshield", cmdtext, true, 10) == 0)
 {
You had this part right?

Change it to this...
Code:
WasCheckBy[playerid] = 999;
 }
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;
    }
if (strcmp("/getshield", cmdtext, true, 10) == 0)
 {
Geso is offline   Reply With Quote
Reply

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



All times are GMT. The time now is 10:26 AM.


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