[AYUDA]team
#1

cree un team

1є como ago para saber o dar el team asi como el vip setteam (playerid) (team 1-9)

2є como se si estoy o no dentro de el team o como ago para estar dentro de el

3є al desconectarme como guardo el team y spanee al entrar en mi cuartel general (osea que se guarde asi como el dinero score armas ect..)
aka esta el codigo...

pawn Код:
new team1skin;
new team1;

team1skin = GetPlayerSkin(playerid);
team1 = GetPlayerTeam(playerid);

if(team1skin == 107)
{
SetPlayerTeam(playerid, 1);
}


if(team1 == 1)
{


SetPlayerColor(playerid, COLOR_VERDE);

}

nota me da lala colocarlo cada cosa en su callback pero de antemano ayudaaaa........
Reply
#2

2є GetPlayerTeam(playerid);

pawn Код:
//el topo
#include <SII>

forward wiiSave(playerid);
forward wiiLoad(playerid);

stock wiiName(playerid)
{
    new
        wiiN[MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, wiiN, sizeof(wiiN));
    return false;
}

public wiiSave(playerid)
{
    new wiiStr[35];
    format(wiiStr,sizeof(wiiStr),"%s.ini",wiiName(playerid));
    INI_Open(wiiStr);
    INI_WriteInt("Team",GetPlayerTeam(playerid));
    INI_Save();
    INI_Close();
    return 1;
}

public wiiLoad(playerid)
{
    new wiiStr[35];
    format(wiiStr,sizeof(wiiStr),"%s.ini",wiiName(playerid));
    INI_Open(wiiStr);
    SetPlayerTeam(playerid,INI_ReadInt("Team"));
    INI_Save();
    INI_Close();
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)