18.04.2009, 16:24
Код:
: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;
{
Код:
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; }
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