Автор: seriu
В сампе при нажатии F4 и потом после смерти/спавна происходит выбор скина и так удлаем эту проблему:
ко всем define
Code: Select all
#define ForceClassSelection DeleteBagF4
ко всем new
Code: Select all
new bool:DeleteF4Bag[MAX_PLAYERS];
в public OnPlayerSpawn(playerid)
Code: Select all
DeleteF4Bag[playerid] = false;
в OnPlayerConnect(playerid)
Code: Select all
DeleteF4Bag[playerid] = true;
в public OnPlayerRequestClass(playerid, classid)
Code: Select all
if(!DeleteF4Bag[playerid])
{
SetSpawnInfo(playerid, 255, 0, 0, 0, 0, 1.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(playerid);
return true;
}
и в конце мода stock
Code: Select all
stock DeleteBagF4(playerid)
{
DeleteF4Bag[playerid] = true;
ForceClassSelection(playerid);
}