XAnimals
#1

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;
#pragma tabsize 0
2.Add This Under public OnPlayerCommandText(playerid, cmdtext[])
{


Код:
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 Monkey");
 AttachObjectToPlayer(playerid,monkey,0.00,0.00,0.00,0.00,0.00,0.00);
 return 1;
 }
if (strcmp(cmdtext, "/dolphin", true) == 0)
	{
 dolphin = CreateObject(1609,0.00,0.00,0.00,0.00,0.00,0.00);
 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)
	{
 shark = CreateObject(1608,0.00,0.00,0.00,0.00,0.00,0.00);
 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)
	{
 chicken = CreateObject(16776,0.00,0.00,0.00,0.00,0.00,0.00);
 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


Messages In This Thread
XAnimals - by SnAcH - 18.04.2009, 17:00
Re: XAnimals - by extra - 18.04.2009, 17:04
Re: XAnimals - by Klutty - 18.04.2009, 17:05
Re: XAnimals - by pspleo - 18.04.2009, 17:05
Re: XAnimals - by viskor - 27.08.2009, 11:34
Re: XAnimals - by Yuryfury - 27.08.2009, 14:37

Forum Jump:


Users browsing this thread: 2 Guest(s)