Pottus / Texture-Studio

83 stars 90 forks source link

Switch To Streamer v2.9.4 And Some Bug Fixes #117

Closed erfanasbari closed 4 years ago

erfanasbari commented 4 years ago

Hi, This PR is related to #116

erfanasbari commented 4 years ago

Looks like flymode is not working, fixing it ...

erfanasbari commented 4 years ago

Fixed The Bug and replace PlayerObjects With DynamicObjects In flymode.pwn Ready To Merge !

erfanasbari commented 4 years ago

sorry i uploaded some files in filterscripts folder instead of tstudio folder -_-

erfanasbari commented 4 years ago

Finally. Ready To Merge =| xD -_-

TechyJ416 commented 4 years ago

Finally. Ready To Merge =| xD -_-

You on Discord? For some reason it doesn't call OnPlayerEditDynamicObject in a different gamemode's .pwn

erfanasbari commented 4 years ago

It's because of new streamer. just add

public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ) return 0;

In Your Gamemode.pwn

if you want to use OnPlayerSelectDynamicObject add This code in your gamemode too:

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

You on Discord?

yp My ID: InterStellar#5423

TechyJ416 commented 4 years ago

I tried adding the first line before but nothing changed after adding select. Added on Discord. dotJay#4209

erfanasbari commented 4 years ago

return value for OnPlayerEditDynamicObject was 1 and that was preventing OnPlayerEditDynamicObject from begin called in gamemode.pwn.

I Changed It to 0. see if it works now

TechyJ416 commented 4 years ago

Added: The new tstudio.amx + hook OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ) return 0; hook OnPlayerSelectObject(playerid, type, objectid, modelid, Float:fX, Float:fY, Float:fZ) return 0;

Changed all OnPlayerEditDynamicObject's to return with 0 in the gamemode files and it worked. Many thanks x

erfanasbari commented 4 years ago

@Crayder i Tested it and there was no problem. i made this PR 12 Days Ago. merge this if you have no problems with it ;D