question about selecting objects
#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


Messages In This Thread
question about selecting objects - by horsemeat - 24.06.2013, 15:29
Re: question about selecting objects - by MP2 - 24.06.2013, 15:42
Re: question about selecting objects - by Anak - 24.06.2013, 15:46
Re: question about selecting objects - by horsemeat - 24.06.2013, 17:24

Forum Jump:


Users browsing this thread: 1 Guest(s)