quit and save position
#6

No I better not crash anything, its fine they'll have to use /qs and /q after

one more thing when they do that im using a bubble, so people around know that they just left (this is in case you chase someone they go round the corner and leave, so you dont run around looking for them like an idiot as you will see a bubble text saying their name and what they used "/q" or "/qs")

pawn Код:
if (strcmp("/qs", cmdtext, true, 10) == 0)
    {
        PlayerInfo[playerid][pQS] = 1;
        PlayerInfo[playerid][pIntQS] = GetPlayerInterior(playerid);

        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        PlayerInfo[playerid][pPos_xQS] = x;
        PlayerInfo[playerid][pPos_yQS] = y;
        PlayerInfo[playerid][pPos_zQS] = z;

        new plname2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plname2, sizeof(plname2));
        new string3[256];
        format(string3, sizeof(string3), "%s:\n(( /qs ))",plname2);
        SetPlayerChatBubble(playerid, string3, COLOR_WHITE, 15.0, 12000);
        Kick(playerid);
    }

    if (strcmp("/q", cmdtext, true, 10) == 0)
    {
        new plname2[MAX_PLAYER_NAME];
        GetPlayerName(playerid, plname2, sizeof(plname2));
        new string3[256];
        format(string3, sizeof(string3), "%s:\n(( /q ))",plname2);
        SetPlayerChatBubble(playerid, string3, COLOR_WHITE, 15.0, 12000);
    }
The problem is that the bubble doesnt appear, I just want the bubble to appear and stay there for 12s and then disapear.

Or insted of using commandtext, should I use onplayerdisconnect, and then the disconnect reason?
Reply


Messages In This Thread
quit and save position - by HondaCBR - 30.12.2011, 09:59
Re: quit and save position - by vassilis - 30.12.2011, 10:49
Re: quit and save position - by Spooky - 30.12.2011, 10:51
AW: Re: quit and save position - by BigETI - 30.12.2011, 10:59
Re: quit and save position - by Spooky - 30.12.2011, 11:00
Re: quit and save position - by HondaCBR - 30.12.2011, 11:22
Re: quit and save position - by silvan - 30.12.2011, 11:27
Re: quit and save position - by Face9000 - 30.12.2011, 12:31
Re: quit and save position - by HondaCBR - 30.12.2011, 13:03
Re: quit and save position - by Face9000 - 30.12.2011, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)