SA-MP Forums Archive
[FilterScript] Robber Gear - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Robber Gear (/showthread.php?tid=347808)



Robber Gear - San1 - 03.06.2012

Код:
    if (strcmp("/robber", cmdtext, true, 10) == 0)
    {
   	    SetPlayerAttachedObject(playerid,1, 19142, 1, 0.112397, 0.049958, -0.001576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
     	    SetPlayerAttachedObject( playerid, 2, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
      	    SetPlayerAttachedObject( playerid, 3, 18637, 1, 0.000000, -0.026987, 0.152000, 89.427894, 357.510375, 273.945983, 1.000000, 1.000000, 1.000000 ); // PoliceShield1 - Shield on back
            SetPlayerAttachedObject( playerid, 4, 18634, 6, 0.045389, -0.019335, -0.246956, 0.000000, 91.442123, 85.389228, 0.971265, 1.000000, 1.000000 ); // GTASACrowbar1 - Crowbar in hand
            SetPlayerAttachedObject( playerid, 5, 1485, 18, -0.024238, -0.058657, -0.019224, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_CIGGY - cuban cigar
   	    SendClientMessage(playerid, COLOR_RED, "You've Have gave urself rob gear");
            return 1;
                    
	}
	if (strcmp("/removerobber", cmdtext, true, 10) == 0)
 	{
            RemovePlayerAttachedObject(playerid,1);
            RemovePlayerAttachedObject(playerid,2);
            RemovePlayerAttachedObject(playerid,3);
            RemovePlayerAttachedObject(playerid,4);
            RemovePlayerAttachedObject(playerid,5);
            SendClientMessage(playerid, COLOR_RED, "You've Removed you robber gear");
            return 1;

    }
use /robber to receive the gear and type /removerobber to remove the gear

hope u like it




Re: Robber Gear - Smokkr - 03.06.2012

I test it and it works!If that is your first script its cool! 9/10


Re: Robber Gear - Kathleen - 03.06.2012

It's nice for RP servers before they going to rob


Re: Robber Gear - Steve Habbz - 03.06.2012

Nice!!


Re: Robber Gear - mickos - 03.06.2012

Nice man, great work bro ^^
And yes i like it, u got a +rep by me


Re: Robber Gear - Firo - 03.06.2012

Thanks mate, you got +rep.
Anyway, how can i make this one with the santa claus hat ? ((All those robbery gear + Santa hat))


Re: Robber Gear - ss2119 - 03.06.2012

Quote:
Originally Posted by Firo
Посмотреть сообщение
Thanks mate, you got +rep.
Anyway, how can i make this one with the santa claus hat ? ((All those robbery gear + Santa hat))
You need To Attach That Hat using what he used (SetPlayerAttachedObject) i think im right


Re: Robber Gear - iProdigy - 03.06.2012

This could be very useful to some. Thank you for creating this and I hope to see more from you!


Re: Robber Gear - Firo - 03.06.2012

Quote:
Originally Posted by ss2119
Посмотреть сообщение
You need To Attach That Hat using what he used (SetPlayerAttachedObject) i think im right
But when i paste the objects to the command with the santa all the objects shown up but the santa does not, maybe it's because he slot 3.


Re: Robber Gear - Lordzy - 01.07.2012

Nice work and it's good for RP servers.