Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new bool: LoginTextDraws[MAX_PLAYERS];
- LoginTextDrawHideForPlayer(playerid)
- {
- new str[24];
- for (new x = 0; x < 8; x++) {
- format(str, sizeof(str), "TextLogin%d", x);
- TextDrawHideForPlayer(playerid, str);
- }
- LoginTextDraws[playerid] = false;
- return 1;
- }
- LoginTextDrawShowForPlayer(playerid)
- {
- new str[24];
- for (new x = 0; x < 8; x++) {
- format(str, sizeof(str), "TextLogin%d", x);
- TextDrawShowForPlayer(playerid, str);
- }
- LoginTextDraws[playerid] = true;
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- LoginTextDrawHideForPlayer(playerid);
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- LoginTextDrawShowForPlayer(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- if (LoginTextDraws[playerid]) {
- LoginTextDrawHideForPlayer(playerid);
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if (!IsPlayerConnected(playerid)) return 0;
- /*if (LoginTextDraws[playerid] && YOUR_LOGGED-IN_VARIABLE) {
- LoginTextDrawHideForPlayer(playerid);
- }*/
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement