25.07.2010, 22:59
nao sei explica mto bem mais quero um fs sei la que apareзa o tipo de conta do player em cima da cabeзa dele exmplo VIP , normal , Administrador
obg
obg
new Text3D:VIP[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
if(PlayerInfo[i][pVIP] >=1)//Depende do seu GM o pVIP. Se usas o The Godfather, vai estar pDonaterRank
{
label[playerid] = Create3DTextLabel("VIP",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(VIP[playerid]);
return 1;
}
new Text3D:Normal[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
if(PlayerInfo[i][pVIP] == 0)
{
label[playerid] = Create3DTextLabel("Normal",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(Normal[playerid]);
return 1;
}
new Text3D:Administrador[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
if(PlayerInfo[i][pAdmin] >=1)//Depende do seu GM o tambйm.
{
label[playerid] = Create3DTextLabel("Administrador",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
return 1;
}
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(Administrador[playerid]);
return 1;
}
new Text3D:Normal[MAX_PLAYERS]; public OnPlayerConnect(playerid) { if(PlayerInfo[i][pVIP] == 0) { Normal[playerid] = Create3DTextLabel("Normal",0x008080FF,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(Normal[playerid], playerid, 0.0, 0.0, 0.7); return 1; } } public OnPlayerDisconnect(playerid, reason) { Delete3DTextLabel(Normal[playerid]); return 1; }