07.06.2013, 11:20
pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new car = AddStaticVehicle(480,x,y,z,1.0290,159,160) ;
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid, Gelb, "Du hast dir einen Cometen gespawnt");
sirene1 = CreateObject(18646,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene1,car,-0.5,0.0,0.85,0,0,0);
pawn Код:
#define Gelb 0xFFFF00AA
new sirene1;
CMD:attachobject(playerid, params[])
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
new car = AddStaticVehicle(480,x,y,z,1.0290,159,160) ;
PutPlayerInVehicle(playerid,car,0);
SendClientMessage(playerid, Gelb, "Du hast dir einen Cometen gespawnt");
sirene1 = CreateObject(18646,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene1,car,-0.5,0.0,0.85,0,0,0);
return 1;
}