29.09.2012, 14:30
Quote:
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); |
all that will do is change their team -_-
you need to do something like this, note this is only a quick script for example, not a copy paste thing
Код:
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; }