[FilterScript] Robber Gear
#1

Код:
    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

Reply
#2

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

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

Nice!!
Reply
#5

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

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

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
Reply
#8

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

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.
Reply
#10

Nice work and it's good for RP servers.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)