Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #tryinclude <a_samp>
- #tryinclude <zcmd>
- forward LogoutInitiation(playerid);
- new gCountTime = 6;
- new Text:Textdraw0;
- new SecondsCount[MAX_PLAYERS] = {0,...};
- public OnGameModeInit() {
- Textdraw0 = TextDrawCreate(298.000000, 312.000000, " ");
- TextDrawBackgroundColor(Textdraw0, 255);
- TextDrawFont(Textdraw0, 1);
- TextDrawLetterSize(Textdraw0, 0.420000, 1.900000);
- TextDrawColor(Textdraw0, -9371393);
- TextDrawSetOutline(Textdraw0, 0);
- TextDrawSetProportional(Textdraw0, 1);
- TextDrawSetShadow(Textdraw0, 1);
- return 1;
- }
- public LogoutInitiation(playerid)
- {
- new sCountIndex[256];
- SecondsCount[playerid] = gCountTime;
- format(sCountIndex, sizeof(sCountIndex), "Saindo %i...", gCountTime);
- TextDrawSetString(Textdraw0, sCountIndex);
- gCountTime --;
- return 1;
- }
- CMD:logout(playerid, params[])
- {
- CallRemoteFunction("OnPlayerConnect","d", playerid);
- SetTimerEx("LogoutInitiation", 1000, 0, "d",playerid);
- TextDrawShowForPlayer(playerid, Textdraw0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment