[Ajuda] Remover attach Objetos.
#5

Quote:
Originally Posted by Diogo123
Посмотреть сообщение
pawn Код:
if(strcmp(cmd, "/sirene", true) == 0)
{
new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene adicionada");
}
else
{
RemoveAttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene retirada");
return 1;
}
adapta para o seu gosto
Utilizei ele assim у..

Код:
dcmd_sirene(playerid,params[])
    {
       #pragma unused params
{
	new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0);
	AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
	SendClientMessage(playerid, COLOR_YELLOW, "sirene adicionada");
}
	else
{
	RemoveAttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
	SendClientMessage(playerid, COLOR_YELLOW, "sirene retirada");
	return 1;
}
Reply


Messages In This Thread
Remover attach Objetos. - by davi54723 - 26.08.2012, 01:35
Respuesta: Remover attach Objetos. - by davi54723 - 26.08.2012, 01:39
Re: Remover attach Objetos. - by Diogo123 - 26.08.2012, 01:45
Respuesta: Re: Remover attach Objetos. - by davi54723 - 26.08.2012, 02:04
Respuesta: Re: Remover attach Objetos. - by davi54723 - 26.08.2012, 02:07

Forum Jump:


Users browsing this thread: 1 Guest(s)