[FilterScript] Animals [First FS]
#1

Animal Cars
This filterscript let you make animal cars! This filterscript will be updating and adding some more animals!


Commands
See ALL commands ingame or video typed: /animals


Bugs know
None! [Thanks for AiRaLoKa!]


Credits
Pawno, SA-MP, GtaSA, AiRaLoKa




Code

Код:
#define FILTERSCRIPT
#include <a_samp>

new objectid[3];
new vehicleid[3];

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/animals", cmdtext, true, 10) == 0)
	{
		ShowPlayerDialog(playerid, 98123, DIALOG_STYLE_MSGBOX, "Animals", "{FFFFFF}/deer {66FF00}- Spawns Deer \n{FFFFFF}/turtle {66FF00}- Spawns Turtle \n{FFFFFF}/cow {66FF00}- Spawns Cow", "Okay", "");
	}
	if (strcmp("/deer", cmdtext, true, 10) == 0)
	{
		new int1 = GetPlayerInterior(playerid);
	 	new Float: x, Float: y, Float: z, Float: r, deer;
	 	GetPlayerPos(playerid,x,y,z);
	 	GetPlayerFacingAngle(playerid,r);
	 	deer = CreateVehicle(522,x,y,z,r,000,000,0);
	 	PutPlayerInVehicle(playerid,deer,0);
		LinkVehicleToInterior(GetPlayerVehicleID(playerid),int1+1);
		objectid[0] = CreateObject(19315,0,0,0,0,0,0);
		vehicleid[0] = GetPlayerVehicleID(playerid);
		AttachObjectToVehicle(objectid[0], vehicleid[0], 0.0, 0.0, 0.0, 0.0, 0.0, 90.0);
		SendClientMessage(playerid,0xFFFFFFFF, "{FFFFFF}Animals: {66FF00}Deer {FFFFFF}spawned!");
		return 1;
	}
	if (strcmp("/turtle", cmdtext, true, 10) == 0)
	{
		new int2 = GetPlayerInterior(playerid);
	 	new Float: x, Float: y, Float: z, Float: r, turtle;
	 	GetPlayerPos(playerid,x,y,z);
	 	GetPlayerFacingAngle(playerid,r);
	 	turtle = CreateVehicle(571,x,y,z,r,000,000,0);
	 	PutPlayerInVehicle(playerid,turtle,0);
		LinkVehicleToInterior(GetPlayerVehicleID(playerid),int2+1);
		objectid[1] = CreateObject(1609,0,0,0,0,0,0);
		vehicleid[1] = GetPlayerVehicleID(playerid);
		AttachObjectToVehicle(objectid[1], vehicleid[1], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
		SendClientMessage(playerid,0xFFFFFFFF, "{FFFFFF}Animals: {66FF00}Turtle {FFFFFF}spawned!");
		return 1;
	}
	if (strcmp("/cow", cmdtext, true, 10) == 0)
	{
		new int3 = GetPlayerInterior(playerid);
	 	new Float: x, Float: y, Float: z, Float: r, cow;
	 	GetPlayerPos(playerid,x,y,z);
	 	GetPlayerFacingAngle(playerid,r);
	 	cow = CreateVehicle(573,x,y,z,r,000,000,0);
	 	PutPlayerInVehicle(playerid,cow,0);
		LinkVehicleToInterior(GetPlayerVehicleID(playerid),int3+1);
		objectid[2] = CreateObject(16442,0,0,0,0,0,0);
		vehicleid[2] = GetPlayerVehicleID(playerid);
		AttachObjectToVehicle(objectid[2], vehicleid[2], 0.0, 0.0, 0.5, 0.0, 0.0, 90.0);
		SendClientMessage(playerid,0xFFFFFFFF, "{FFFFFF}Animals: {66FF00}Cow {FFFFFF}spawned!");
		return 1;
	}
 	return 1;
 }
Reply


Messages In This Thread
[FIXED] Animals [First FS] - by MrWupiazZzLT - 28.06.2014, 15:59
Re: Animals [First FS] - by pEmanZ - 28.06.2014, 16:01
Re: Animals [First FS] - by NewerthRoleplay - 28.06.2014, 16:01
Re: Animals [First FS] - by MrWupiazZzLT - 28.06.2014, 16:02
Re: Animals [First FS] - by Team_PRO - 28.06.2014, 16:04
Re: Animals [First FS] - by pEmanZ - 28.06.2014, 16:04
Re: Animals [First FS] - by MrWupiazZzLT - 28.06.2014, 16:05
Re: Animals [First FS] - by Rocky1993 - 28.06.2014, 16:05
Re : Animals [First FS] - by Clad - 28.06.2014, 16:06
Re: Animals [First FS] - by MrWupiazZzLT - 28.06.2014, 16:08
Re: Animals [First FS] - by MrWupiazZzLT - 28.06.2014, 16:11
Re: Animals [First FS] - by iZN - 28.06.2014, 16:15
Re : Re: Animals [First FS] - by Clad - 28.06.2014, 16:42
Re: Animals [First FS] - by MrWupiazZzLT - 28.06.2014, 16:46
Re: Animals [First FS] - by AiRaLoKa - 28.06.2014, 23:47
Re: Animals [First FS] - by MrWupiazZzLT - 29.06.2014, 11:40
Re: Animals [First FS] - by MrWupiazZzLT - 05.07.2014, 19:49
Re: Animals [First FS] - by Abagail - 05.07.2014, 21:00
Re: Animals [First FS] - by MrWupiazZzLT - 06.07.2014, 09:34
Re: Animals [First FS] - by MrWupiazZzLT - 06.07.2014, 09:43
Re: Animals [First FS] - by Arastair - 19.12.2014, 07:12
Respuesta: Animals [First FS] - by AndreLuiz - 19.12.2014, 07:47
AW: Animals [First FS] - by Flori - 19.12.2014, 08:46

Forum Jump:


Users browsing this thread: 1 Guest(s)