Disabling playerclass spawn.
#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


Messages In This Thread
Disabling playerclass spawn. - by MrPlatinum - 29.09.2012, 13:56
Re: Disabling playerclass spawn. - by Necro[ABK] - 29.09.2012, 14:30

Forum Jump:


Users browsing this thread: 2 Guest(s)