30.12.2011, 11:22
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")
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?
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);
}
Or insted of using commandtext, should I use onplayerdisconnect, and then the disconnect reason?