COMMAND:aduty(playerid, params[]){// Send the command to all admins so they can see itSendAdminText(playerid, \"/aduty\", params);// Check if the player has logged inif (APlayerData[playerid][LoggedIn] == true){ // Check if the player\'s admin-level is at least 3 if (APlayerData[playerid][PlayerLevel] >= 1) { if(APlayerData[playerid][Aduty] == 0) { playerskin = GetPlayerSkin(playerid); APlayerData[playerid][Aduty] = 1; SendClientMessage(playerid, 0xFFFFFFFF, \"{00FF00}Admin szolgálatban vagy! Ne feled mielõtt kilépnél a szerverõl használd /adutyki\"); SetPlayerSkin(playerid, 217); APlayerData[playerid][ASZ] = Create3DTextLabel(\"Admin Szolgálatban\", 0xff0000AA, 0.0, 0.0, 2.0, 40, 0, 0); Attach3DTextLabelToPlayer(APlayerData[playerid][ASZ], playerid, 0.0, 0.0, 0.7); } else SendClientMessage(playerid, 0xFFFFFFFF, \"{FF0000}Már szolgálatban vagy!\"); } else return 0;}else return 0;// Let the server know that this was a valid commandreturn 1;}
new Text3D:plabel = Create3DTextLabel(...);Attach3DTextLabelToPlayer(plabel, playerid, eltolás(x), eltolás(y), eltolás(z));
new Text3D:label[MAX_PLAYERS]; label[playerid] = Create3DTextLabel(\"Admin szoliban!\", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);
Rakd be azt az Attach ot helyette jobb! Sokkal és nem a player fogja látni hanem mindenki! new Text3D:label[MAX_PLAYERS]; label[playerid] = Create3DTextLabel(\"Admin szoliban!\", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.7);