question about selecting objects
#1

would it be possible to select and in game object by using something like
pawn Код:
SelectObject(playerid)
https://sampwiki.blast.hk/wiki/SelectObject
Reply
#2

What do you mean would it be possible? That's like saying 'is it possible to show a message using SendClientMessage'..
Reply
#3

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
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)