public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0..3:
{
GameTextForPlayer(playerid, "~w~Los Santos ~g~SAPD", 5000, 3);
SetPlayerCameraPos(playerid, 1780.6676, -2462.4436, 15.5547);
SetPlayerCameraLookAt(playerid, 1791.9713, -2470.5684, 16.9427);
}
case 4..7: GameTextForPlayer(playerid, "~w~San Fierro ~g~SAPD", 5000, 3);
case 8..11: GameTextForPlayer(playerid, "~w~Las Venturas ~g~SAPD", 5000, 3);
case 12..14: GameTextForPlayer(playerid, "~w~Las Venturas ~g~DRIFTER", 5000, 3);
}
PlayerPlaySound(playerid, 1185, 0, 0, 0);
SetPlayerPos(playerid, 1792.3409, -2471.4387, 16.9700);
SetPlayerFacingAngle(playerid, 57.9551);
SetPlayerVirtualWorld(playerid, 0);
return 1;
}
I already saw some Gamemodes that the player had to spawn to the objects and the cars appears to him.
Maybe the problem is not in your public OnPlayerRequestClass but in you Spawn Settings. Your public OnPlayerRequestClass is normal. I hope i have helped |
try using incognito's streamer for the objects then
Streamer_UpdateEx(playerid); onplayerrequestclass. i hope this helps. |
CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
//skin choose island
new bool: SkinChooseIslandObjectsShown[MAX_PLAYERS];
new SpawnIslandObject1;
new SpawnIslandObject2;
new SpawnIslandObject3;
new SpawnIslandObject4;
new SpawnIslandObject5;
new SpawnIslandObject6;
new SpawnIslandObject7;
new SpawnIslandObject8;
new SpawnIslandObject9;
public OnPlayerRequestClass(playerid, classid)
{
if(SkinChooseIslandObjectsShown[playerid] == false)
{
SkinChooseIslandObjectsShown[playerid] = true;
SpawnIslandObject1 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject2 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject3 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject4 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject5 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject6 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject7 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject8 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
SpawnIslandObject9 = CreatePlayerObject(playerid, modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ);
}
return 1;
}