question about selecting objects - 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: question about selecting objects (
/showthread.php?tid=446128)
question about selecting objects -
horsemeat - 24.06.2013
would it be possible to select and in game object by using something like
https://sampwiki.blast.hk/wiki/SelectObject
Re: question about selecting objects -
MP2 - 24.06.2013
What do you mean would it be possible? That's like saying 'is it possible to show a message using SendClientMessage'..
Re: question about selecting objects -
Anak - 24.06.2013
You should also add this to script to use it with EditObject(playerid, objectid);
pawn Код:
public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)
{
printf("Player %d selected object %d", playerid, objectid);
if(type == SELECT_OBJECT_GLOBAL_OBJECT)
{
EditObject(playerid, objectid);
}
else
{
EditPlayerObject(playerid, objectid);
}
SendClientMessage(playerid, 0xFFFFFFFF, "You now are able to edit your object!");
return 1;
}
source:
https://sampwiki.blast.hk/wiki/OnPlayerSelectObject
Re: question about selecting objects -
horsemeat - 24.06.2013
Quote:
Originally Posted by MP2
What do you mean would it be possible? That's like saying 'is it possible to show a message using SendClientMessage'..
|
well I mean the default objects that are in the game