[POMOC] /afk

Započeo Rolex., April 06, 2013, 13:06:11 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:LA
Detaljan opis problema:Kad idem afk ukucam /afk i onda kad budem online stisnem enter i onda mi ovako slika izbaci
Dio skripte:
if (strcmp(cmd, "/afk", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 1)
{
    if(AFK[playerid] == 0)
    {
                    GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                    SafeSetPlayerPos(playerid, 0,0,2500);
afkadmins ++;
AFK[playerid] = 1;
TogglePlayerControllable(playerid, 0);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw50);
    TextDrawHideForPlayer(playerid, Textdraw44);
    TextDrawHideForPlayer(playerid, Textdraw45);
    TextDrawHideForPlayer(playerid, Textdraw55);
    TextDrawHideForPlayer(playerid, Textdraw49[playerid]);
    TextDrawHideForPlayer(playerid, Textdraw51[playerid]);
    if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawHideForPlayer(playerid, Textdraw56);
TextDrawHideForPlayer(playerid, Textdraw57);
TextDrawHideForPlayer(playerid, Textdraw58);
}
}
else
{
SafeSetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
afkadmins --;
AFK[playerid] = 0;
TogglePlayerControllable(playerid, 1);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw50);
    TextDrawShowForPlayer(playerid, Textdraw44);
    TextDrawShowForPlayer(playerid, Textdraw45);
    TextDrawShowForPlayer(playerid, Textdraw49[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw51[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw55);
    if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawShowForPlayer(playerid, Textdraw56);
TextDrawShowForPlayer(playerid, Textdraw57);
TextDrawShowForPlayer(playerid, Textdraw58);

}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "* Pristup odbijen.");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): I sliika http://www.zaslike.com/viewer.php?file=3sx7zvrhqdcv8xp06lte.png

Kako vidim,ovde se pale neki TD-ovi, verovatno je do njih, obrisi one koji ti ne trebaju
RESPECT :
Vegas & C++