hát õõõ...nálam kiakadt a class váltás szóval se elõre se hátra nem tudtam menni utána
akkor B terv
http://wiki.sa-mp.com/wiki/OnPlayerRequestSpawnezzel a kóddal mûködik:
#include <a_samp>
new bool:PSpawn[MAX_PLAYERS];
main() { }
public OnGameModeInit()
{
SetGameModeText(\"NEE NEE CSAK A GOMBOKAT NEE, GUMICOKRBÓL VANNAK !!!\");
//
AddPlayerClass(100, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(101, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(102, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(103, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(104, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
AddPlayerClass(105, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.5783, 1343.5572, 15.5746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
//
PSpawn[playerid] = true;
//
switch(classid)
{
case 0: { GameTextForPlayer(playerid,\"~g~~h~Nulla\",8000,4); }
case 1: { GameTextForPlayer(playerid,\"~b~~h~Egy\",8000,4); }
case 2: { GameTextForPlayer(playerid,\"~p~~h~Ketto\",8000,4); }
case 3: { GameTextForPlayer(playerid,\"~r~~h~Harom\",8000,4); }
case 4: { GameTextForPlayer(playerid,\"~y~~h~Negy\",8000,4); PSpawn[playerid] = false; }
}
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(!PSpawn[playerid]) { return 0; }
return 1;
}
de megcsinálhatod változó helyett GetPlayerSkin-el is
http://wiki.sa-mp.com/wiki/GetPlayerSkin