[Ajuda] bloquear classe
#1

gostaria de saber como bloquear uma classe

public OnPlayerRequestClass(playerid, classid)
{
TogglePlayerSpectating(playerid,0);

switch (classid)
{
case 0:
limparChat(playerid, 30),
SetPlayerPos(playerid, 2431.19921875, -1679.099609375, 13.800000190735),

case 1:
limparChat(playerid, 30),
SetPlayerPos(playerid, 1023.200012207, -1692.5, 13.5),

}
return 1;
}

no sistema de salvamento tem um PlayerInfo[playerid][bloqueo], ai por exemplo, se a pessoa esta bloqueada, ela n pode pegar outra skin, sу a primeira, a segunda ficar bloqueada, oq fasso ?
Reply
#2

Vocк pode usar OnPlayerRequestSpawn..

https://sampwiki.blast.hk/wiki/OnPlayerRequestSpawn

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    if(GetPlayerSkin(playerid != SEU_SKIN)
    {
        SendClientMessage(playerid,COLOR_GREEN,"vc n pode nascer com skin diferenti.");
        return 0;
    }
    return 1;
}
Reply
#3

obrigado cara +RAP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)