[Gm Add On] XAnimal Farm
#1

Код:
 :D My First Script Ive Ever Made !!!!! + Its Offical...



XAnimal Farm Makes You Look Like An XAnimal, For Example If I Type /Turtle I Change Into A Turtle (A Object Is Placed On Me)

XAnimals:

1.Monkey 
2. Chicken
3. Dolphin
4.Shark 
5. Turtle

Steps: 


1. Add This At The Top Of Your GameMode Under #include <a_samp> 
Код:
#define COLOR_RED 0xAA3333AA
new turtle;
new shark;
new dolphin;
new chicken;
new monkey;
2.Add This Under public OnPlayerCommandText(playerid, cmdtext[])
{


Код:
if (strcmp(cmdtext, "/monkey", true) == 0)
	{
 SendClientMessage(playerid,COLOR_RED,"You Are Having A Monkey");
 AttachObjectToPlayer(playerid,monkey,0.00,0.00,0.00,0.00,0.00,0.00);
 return 1;
 }
if (strcmp(cmdtext, "/dolphin", true) == 0)
	{
 SendClientMessage(playerid,COLOR_RED,"You Are Having A Dolphin");
 AttachObjectToPlayer(playerid,dolphin,0.00,0.00,0.00,0.00,0.00,0.00);
 return 1;
 }
if (strcmp(cmdtext, "/shark", true) == 0)
	{

 SendClientMessage(playerid,COLOR_RED,"You Are Having A Shark");
 AttachObjectToPlayer(playerid,shark,0.00,0.00,0.00,0.00,0.00,0.00);
 return 1;
 }
if (strcmp(cmdtext, "/chicken", true) == 0)
	{
 SendClientMessage(playerid,COLOR_RED,"You Are Having A Chicken");
 AttachObjectToPlayer(playerid,chicken,0.00,0.00,0.00,0.00,0.00,0.00);
 return 1;
 }
if (strcmp(cmdtext, "/turtle", true) == 0)
	{
 turtle = CreateObject(1609,0.00,0.00,0.00,0.00,0.00,0.00);
 SendClientMessage(playerid,COLOR_RED,"You Are Having A Turtle");
 AttachObjectToPlayer(playerid,turtle,0.00,0.00,0.00,0.00,0.00,0.00);
 return 1;
		}
Your Done!

Credits: Me For Scripting This Gamemode Addon
Credits: Samp Wiki For Teaching Me How To Use AttachObjectToPlayer
Credits: Sa:mp For Making This Cool Mod! :P
This May Not Be The Best Script You Have Ever Seen But Dont Complain, Its My First, Just Say What I Can Improve
Reply
#2

this is for plugins not for Filterscripts add your script here: http://forum.sa-mp.com/index.php?board=62.0
Reply
#3

okay
Reply
#4

Код:
if (strcmp(cmdtext, "/monkey", true) == 0)
	{
 monkey = CreateObject(13667,0.00,0.00,0.00,0.00,0.00,0.00);
 SendClientMessage(playerid,COLOR_RED,"You Are Having A Turtle");
/monkey - You Are Having A Turtle

wrong form + your code don't make sense.

epic fail.
Reply
#5

Woops I Put You Are Having A Turtle + look On Other Plugin Thred Fixed now
Reply
#6

kasko u are wrong i put it in the plugins thread and it got moved
Reply
#7

Seems quite similar to mine, with the downside that on this there isn't a way to rid yourself of the suit.... I'm intrigued to know what object you used for the monkey though...
Reply
#8

Thanks buddy,
dont let anyone tell you other, Its a kool script
and tbh, it should be in the gamemode i think but not sure,
but fuck it, As long as it gets used
Nice script maytee :P
Reply
#9

thanx by the way i dident evan know you had a animal script...
Reply
#10

I Need Some Help... There Is No Errors Or Warnings But It Dosent work
Reply
#11

Errr, what the hell is going on with your code >.>

Why are you adding each object several times (fairly pointless, as you'll end up with loads of sharks etc at 0.0)

Reply
#12

Wouldn't it of been a good idea to test scripts before releasing them?
Reply
#13

Yes Ummmm I Tested It Before And It Worked ... Someone Help?

i want it so that the whole server can see
Reply
#14

1. stop double posting. (read forum rules)
2. why the h*** did you double up create object 5 times for each one.
Reply
#15

Ya... this wont work at all
Reply
#16

AttachObjectToPlayer native:

Код:
 AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ)
Fix the code.

Epsilon
Reply
#17

snatch, please know what your doing before you post things. This wont even remotely work. its considered spam to me.
Reply
#18

This is kinda fail.
Reply
#19

easy but funny
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)