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