Closed erfanasbari closed 4 years ago
Looks like flymode is not working, fixing it ...
Fixed The Bug and replace PlayerObjects With DynamicObjects In flymode.pwn Ready To Merge !
sorry i uploaded some files in filterscripts folder instead of tstudio folder -_-
Finally. Ready To Merge =| xD -_-
Finally. Ready To Merge =| xD -_-
You on Discord? For some reason it doesn't call OnPlayerEditDynamicObject in a different gamemode's .pwn
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
I tried adding the first line before but nothing changed after adding select. Added on Discord. dotJay#4209
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
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
@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
Hi, This PR is related to #116