Disabling playerclass spawn.
#1

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);
to

Код HTML:
case 0: SetSpawnInfo(playerid, 1, GetPlayerSkin(playerid), -525.0, -502.0, 26.0, 0.0, 0, 0, 0, 0, 0, 0);
?
Reply
#2

Quote:
Originally Posted by MrPlatinum
Посмотреть сообщение
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);
to

Код 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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)