[Gm Add On] XAnimal Farm -
SnAcH - 18.04.2009
Код:
: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
Re: [Gm Add On] XAnimal Farm -
kasco - 18.04.2009
this is for plugins not for Filterscripts add your script here:
http://forum.sa-mp.com/index.php?board=62.0
Re: [Gm Add On] XAnimal Farm -
SnAcH - 18.04.2009
okay
Re: [Gm Add On] XAnimal Farm -
StrickenKid - 18.04.2009
Код:
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.
Re: [Gm Add On] XAnimal Farm -
SnAcH - 18.04.2009
Woops I Put You Are Having A Turtle + look On Other Plugin Thred Fixed now
Re: [Gm Add On] XAnimal Farm -
SnAcH - 18.04.2009
kasko u are wrong i put it in the plugins thread and it got moved
Re: [Gm Add On] XAnimal Farm -
Weirdosport - 18.04.2009
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...
Re: [Gm Add On] XAnimal Farm -
aspire5630 - 18.04.2009
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
Re: [Gm Add On] XAnimal Farm -
SnAcH - 18.04.2009
thanx by the way i dident evan know you had a animal script...
Re: [Gm Add On] XAnimal Farm -
SnAcH - 18.04.2009
I Need Some Help... There Is No Errors Or Warnings But It Dosent work
Re: [Gm Add On] XAnimal Farm -
Weirdosport - 18.04.2009
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)
Re: [Gm Add On] XAnimal Farm -
miokie - 18.04.2009
Wouldn't it of been a good idea to test scripts before releasing them?
Re: [Gm Add On] XAnimal Farm -
SnAcH - 19.04.2009
Yes Ummmm I Tested It Before And It Worked ... Someone Help?
i want it so that the whole server can see
Re: [Gm Add On] XAnimal Farm -
StrickenKid - 19.04.2009
1. stop double posting. (read forum rules)
2. why the h*** did you double up create object 5 times for each one.
Re: [Gm Add On] XAnimal Farm -
tom_jonez - 19.04.2009
Ya... this wont work at all
Re: [Gm Add On] XAnimal Farm -
_[HuN]_Epsilon_ - 19.04.2009
AttachObjectToPlayer native:
Код:
AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ)
Fix the code.
Epsilon
Re: [Gm Add On] XAnimal Farm -
StrickenKid - 20.04.2009
snatch, please know what your doing before you post things. This wont even remotely work. its considered spam to me.
Re: [Gm Add On] XAnimal Farm -
Klutty - 20.04.2009
This is kinda fail.
Re: [Gm Add On] XAnimal Farm -
]NM[TheShadow - 26.04.2009
easy but funny