26.07.2010, 21:00
Simples...
Se for VIP.
Se for Normal.....
Se for Administrador....
Eu nгo testei....
Se for VIP.
pawn Code:
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;
}
pawn Code:
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;
}
pawn Code:
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;
}