SA-MP Forums Archive
f4 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: f4 (/showthread.php?tid=547180)



f4 - StR_MaRy - 21.11.2014

when i press f4 button class selection , after i chose a skin i spawn , and my skyn reset why ?


Re: f4 - Schneider - 21.11.2014

We're not clairvoyant, you have to show us some code (OnPlayerSpawn?) so we can see what's wrong.


Re: f4 - xCrazyMonkey - 21.11.2014

Please show us your coding on OnPlayerSpawn and OnPlayerUpdate


Re: f4 - Beckett - 21.11.2014

Perhaps you can show us what's under OnPlayerSpawn.


Re: f4 - StR_MaRy - 21.11.2014

new Peds[70][1] = {
{1}, {2}, {3}, {7}, {10}, {14}, {15}, {16}, {18}, {20}, {23}, {27}, {28}, {29}, {31}, {32}, {33}, {34}, {36}, {37},
{38}, {39}, {44}, {45}, {49}, {50}, {51}, {53}, {58}, {60}, {62}, {64}, {72}, {73}, {75}, {78}, {79}, {81}, {82},
{85}, {87}, {88}, {89}, {91}, {92}, {95}, {96}, {97}, {101}, {134}, {139}, {146}, {152}, {155}, {159}, {162},
{170}, {182}, {183}, {197}, {203}, {204}, {210}, {217}, {230}, {231}, {237}, {238}, {242}, {250}
};

public OnPlayerRequestClass(playerid, classid)
{
PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];

after registration step same public
PlayerInfo[playerid][pModel] = Peds[classid][0];
}
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];

public OnGameModeInit()
for(new i = 0; i <= sizeof(Peds)-1; i++)
{
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
}


Re: f4 - CoaPsyFactor - 21.11.2014

show us code of following functions

Код:
OnPlayerSpawn
OnPlayerRequestSpawn
OnPlayerRequestClass



Re: f4 - StR_MaRy - 21.11.2014

OnPlayerRequestSpawn i don't have it
OnPlayerSpawn i have nothing there for peds
OnPlayerRequestClass: PlayerPlaySound(playerid, 1068, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];

after registration step same public
PlayerInfo[playerid][pModel] = Peds[classid][0];
}
PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];

public OnGameModeInit()
for(new i = 0; i <= sizeof(Peds)-1; i++)
{
AddPlayerClass(Peds[i][0],1958.3783,1343.1572,1100.3746,269.1425,-1,-1,-1,-1,-1,-1);
}