case 0: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0);
case 0: SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0);
To disable a certain spawn for a class would i have to change,
Код HTML:
case 0: SetSpawnInfo(playerid, 0, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0); Код HTML:
case 0: SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0); |
new myClass[MAX_PLAYERS]; public OnPlayerRequestClass(playerid, classid) { myClass[playerid]=classid; return 1; } public OnPlayerRequestSpawn(playerid) { if(myClass[playerid]==CLASS_TO_BE_DISABLED){ return 0; } return 1; }