02.05.2015, 14:09
Hello!
You should define the label's like this:
Also it needs if you write it so:
instead of
You should define the label's like this:
PHP код:
new Text3D:label1[MAX_PLAYERS],Text3D:label2[MAX_PLAYERS];//global
public OnPlayerSpawn(playerid)
{
TogglePlayerControllable(playerid,1);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100);
if(IsPlayerVipMember(playerid))
{
label1[playerid] = Create3DTextLabel("..::[VIP]::..",0x33CCFFAA,0.0,0.0,0.0,40.0,0);
Attach3DTextLabelToPlayer(label1[playerid],playerid,0.0,0.0,0.25);
SetPlayerPos(playerid,3383.0039,2360.2415,8.120);
GameTextForPlayer(playerid,"WELCOME HOME VIP", 5000, 6);
SetTimerEx("Unfreeze", 5000, false, "i", playerid);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100);
}
if(IsPlayerLuxAdmin(playerid) || IsPlayerAdmin(playerid))
{
Delete3DTextLabel(label1[playerid]);
label2[playerid] = Create3DTextLabel("..::[ADMIN]::..", 0x99FF00AA, 0.0, 0.0, 0.0, 40.0, 0);
SetPlayerPos(playerid, 3384.6399,2360.1299,2.5485);
GameTextForPlayer(playerid, "WELCOME HOME ADMIN", 5000, 6);
TogglePlayerControllable(playerid, false);
SetTimerEx("Unfreeze", 5000, false, "i", playerid);
SetPlayerArmour(playerid, 100.0);
SetPlayerHealth(playerid, 100);
}
return 1;
}
PHP код:
if(IsPlayerLuxAdmin(playerid) || IsPlayerAdmin(playerid))
PHP код:
if(IsPlayerLuxAdmin(playerid))
{
}
if(IsPlayerAdmin(playerid))
{
}