Search

open.mp forum

RegisterLogin

Discussion

General
Chat
Tech
Life
Art
Programming
open.mp
Development Updates
Questions and Suggestions
SA-MP
General Discussions
Videos and Screenshots
Support
Pawn Scripting
Tutorials
Releases
Plugins
Libraries
Filterscripts
Gamemodes
Maps
Advertisements
Other languages
Spanish/Espa?ol
Programaci?n
Discusi?n GTA SA Multijugador
Mods
Offtopic
Juegos
Portuguese/Portugu?s
Russian/???????
Italian/Italiano
Dutch/Nederlands
German/Deutsch
Romanian/Rom?na
Ex-Yu
Polish/Polski
Og?lne
Serwery
Skryptowanie
Filmiki i zdjecia
Lithuanian/Lietuvi?kas
French/Fran?ais
Hungarian/Magyar
Hindi/Urdu
Turkish
Other
Internal
Team
Hidden
Archived

Library

 Collections Links Members Roles

[SOLVED] How to select Dynamic Object from Plugin Streamer?

PROBLEM:

ID
d6ouivnilegovhg7bqf0
author
putusuhartawan's avatar

PutuSuhartawan

@putusuhartawan


View profile
Copy link
  Report member
started
Apr 15, 2021
replies
0
participating
No

scroll to top

powered by storyden

Login
Discussion
Pawn Scripting
[SOLVED] How to select Dynamic Object from Plugin Streamer?
putusuhartawan's avatar

PutuSuhartawan

@putusuhartawan


View profile
Copy link
  Report member
• 5y
Pawn Scripting

[SOLVED] How to select Dynamic Object from Plugin Streamer?

pawn

PROBLEM:



public OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ)

{

? ? new message[526];



? ? if(type == SELECT_OBJECT_GLOBAL_OBJECT) {

? ? ? ? if(!IsValidObject(objectid)) return 0;

? ? ? ? format(message,sizeof(message),"[Global Object] Sir you have select line in server: %d, modelobjectID : %d, Pos: %.4f,%.4f,%.4f", objectid, modelid, fX, fY, fZ);

? ? ? ? SendClientMessage(playerid, 0xFFFFFFFF, message);

? ? ? ? EditObject(playerid, objectid);

? ? ? ? return 1;

}



if(type == SELECT_OBJECT_PLAYER_OBJECT) {

? ? ? ? if(!IsValidPlayerObject(playerid, objectid)) return 0;

? ? ? ? format(message,sizeof(message),"[Player Select player Object] Anda memilih baris proggram : %d modelID nya adalah: %dPos: %.4f,%.4f,%.4f", objectid, modelid, fX, fY, fZ);

? ? ? ? SendClientMessage(playerid, 0xFFFFFFFF, message);

? ? ? ? EditPlayerObject(playerid, objectid);

? ? ? ? //EditDynamicObject(playerid, objectid);

? ? ? ? SEM(playerid, "Dynamic edit after select non dynamic");

? ? ? ? return 1;



? ? if(type == STREAMER_OBJECT_TYPE_GLOBAL)

? ? {

? ? ? SEM(playerid, "Dynamic object type global");

? ? ? Streamer_Update(playerid, -1);

? ? ? EditDynamicObject(playerid, objectid);

? ? ? return 1;

? ? }

}







SOLUTION:

if(type == SELECT_OBJECT_PLAYER_OBJECT) {

? ? OnPlayerSelectDynamicObject(playerid, objectid, modelid, Float:fX, Float:fY, Float:fZ);

? ? ? // if(!IsValidPlayerObject(playerid, objectid)) return 0;

? ? ? ? format(message,sizeof(message),"[Player Select player Object] Anda memilih baris proggram : %d modelID nya adalah: %dPos: %.4f,%.4f,%.4f", objectid, modelid, fX, fY, fZ);

? ? ? ? SendClientMessage(playerid, 0xFFFFFFFF, message);

? ? ? ? EditPlayerObject(playerid, objectid);

? ? ? ? //EditDynamicObject(playerid, objectid);

? ? ? ? SEM(playerid, "Dynamic edit after select non dynamic");

? ? ? ? return 1;

? }
0 likes0 replies

    Please sign up or log in to reply