SA-MP Forums Archive
Spectating a pickup. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Spectating a pickup. (/showthread.php?tid=596412)



Solved. - suni - 17.12.2015

If it's possible to spectate a pickup, can someone show me how to do it?


Re: Spectating a pickup. - TwinkiDaBoss - 17.12.2015

Save the pickup pos inside an enum or such and you can SetPlayerCameraLookAt there. Or add an object and attach camera to the object.


Re: Spectating a pickup. - suni - 17.12.2015

i tries making something like this but failed. i need someone to show me a example.


Re: Spectating a pickup. - suni - 17.12.2015

anyone?


Re: Spectating a pickup. - TobsenMTA - 17.12.2015

Is the pickup always on the same position?


Re: Spectating a pickup. - suni - 17.12.2015

no, they dont be in the same position all the time as i have a command to create a pickups in front of me.


Re: Spectating a pickup. - TobsenMTA - 17.12.2015

Okay and you want Spectate one pickup?
Or random?


Re: Spectating a pickup. - suni - 17.12.2015

only one


Re: Spectating a pickup. - TobsenMTA - 17.12.2015

Post your create command.


Re: Spectating a pickup. - suni - 17.12.2015

pickup
Quote:

CMDickup(playerid,params[])
{
if(pInfo[playerid][pLevel] >= 6)
{
new type,id, Float:X, Float:Y, Float:Z;
if(sscanf(params, "ii",type,id)) return SendClientMessage(playerid,yellow,"Usage: /Pickup <Type> <Pickup ID>");
CommandToAdmins(playerid,"pickup");
GetPlayerPos(playerid, X, Y, Z);
switch(type)
{
return SendClientMessage(playerid,red,"Invalid pickup type!");
}
FP = CreateDynamicPickup(id, type, X, Y, Z);
}
else return ShowMessage(playerid, red, 1);
}