Mód elejére:
new gPlayerClass[MAX_PLAYERS];
Ezt a többi public-hoz
public OnPlayerRequestClass(playerid, classid)
{
gPlayerClass[playerid] = classid;
switch (classid) {
case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20:
{
GameTextForPlayer(playerid, \"Civil\", 1000, 3);
SetPlayerInterior(playerid,interiorid);
SetPlayerPos(playerid,x, y, z));
SetPlayerFacingAngle(playerid, z);
SetPlayerCameraPos(playerid,x, y, z));
SetPlayerCameraLookAt(playerid,x, y, z);
}
}
return 1;
}
Nem teszteltem!
Az oké,de viszont akármijen inerior ID-t irok be,és utána kiválasztom a skint,lespawnolok,és igy néz ki a dolog:
http://kepfeltoltes.hu/110615/1097608170sa-mp-003_www.kepfeltoltes.hu_.png[/img]
Ezt nem értem.. ha 0-ra rakom,akkor ha spawnolok tökéletes,ha inerior ID-t irok akkor meg ijen..
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
SetWorldTime(12);
SetPlayerVirtualWorld(playerid, 0);
Itt a code.