OnPlayerRequestClass - OnPlayerDynamicObject not work
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
What is OnPlayerDynamicObject meant to do? Most function names should include a verb.
OnPlayerDynamicObject I am using, sir, in that;

pawno/include/object.inc;
Код:
object()
{
	new tmpobjid;
    tmpobjid = CreateDynamicObject(19454, 2487.895507, 2336.786865, 11.520307, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
    SetDynamicObjectMaterial(tmpobjid, 0, 6988, "vgnfremnt1", "scmgarage1_128", 0x00000000);
    tmpobjid = CreateDynamicObject(19391, 2486.373291, 2341.487792, 11.510315, 0.000000, 0.000000, 90.899986, -1, -1, -1, 300.00, 300.00);
    SetDynamicObjectMaterial(tmpobjid, 0, 6988, "vgnfremnt1", "scmgarage1_128", 0x00000000);
    tmpobjid = CreateDynamicObject(19454, 2480.035888, 2341.464843, 11.510307, 0.000000, 0.000000, -90.000007, -1, -1, -1, 300.00, 300.00);
    SetDynamicObjectMaterial(tmpobjid, 0, 6988, "vgnfremnt1", "scmgarage1_128", 0x00000000);
    tmpobjid = CreateDynamicObject(19454, 2477.474121, 2336.666748, 11.500307, 0.000000, 0.000000, 0.000000, -1, -1, -1, 300.00, 300.00);
    SetDynamicObjectMaterial(tmpobjid, 0, 6988, "vgnfremnt1", "scmgarage1_128", 0x00000000);
    tmpobjid = CreateDynamicObject(19454, 2482.998779, 2331.884277, 11.510307, 0.000000, 0.000000, -90.000007, -1, -1, -1, 300.00, 300.00);
    SetDynamicObjectMaterial(tmpobjid, 0, 6988, "vgnfremnt1", "scmgarage1_128", 0x00000000);
}
Go to the my gamemode;
add OnGameModeInıt in object(); and go the the OnPlayerRequestSpawn add

Код:
Streamer_UpdateEx(playerid, Float:2479.4639, Float:2334.1392, Float:10.8890);
TogglePlayerSpectating(playerid, 0);
SetPlayerPos(playerid, 2479.4639, 2334.1392, 10.8890);
SetPlayerCameraPos(playerid,2482.7217, 2338.5298, 10.8890);
SetPlayerCameraLookAt(playerid,2481.3228, 2336.4272, 10.8890);
SetPlayerFacingAngle(playerid, 310.8140);
but objects just showing up for like half a second, then they'll disappear how can I solve this ?

Note: sometimes I can't understand because my english is bad I am so sorry for that we can bring a solution with examples
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)