/stuck command bug
#3

Quote:
Originally Posted by RALL0
Посмотреть сообщение
Try this

Код:
if(strcmp(cmd, "/stuck", true) == 0) // By CuervO_NegrO
    {
        if(IsPlayerConnected(playerid))
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if(PlayerInfo[playerid][pFrozen] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "You were frozen by an admin, you can't evade that!");
                SendClientMessage(playerid, COLOR_GREY, "If you still think that you are bugged use /atalk!");
                return 1;
            }
            if(admins >= 1 && PlayerInfo[playerid][pAdmin] < 1)
            {
                SendClientMessage(playerid, COLOR_GREY, "There are administrators online, please use /atalk!");
                return 1;
            }
            if(IsASalesVehicle(vehicleid))
            {
                SendClientMessage(playerid, COLOR_GREY, "You are in a sale vehicle. do /exit or use /atalk!");
                return 1;
            }
            if(IsARentableVeh(vehicleid))
            {
                SendClientMessage(playerid, COLOR_GREY, "You are in a rental vehicle. do /exit or use /atalk!");
                return 1;
            }
            TogglePlayerControllable(playerid, 1);
            new y, m, d;
            new h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
            format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /stuck",d,m,y,h,mi,s,sendername);
            AdminLog(string);
        }
Not Working .
Still shows me You are in a rental vehicle while im on foot
Reply


Messages In This Thread
/stuck command bug - by mouadys - 11.06.2013, 19:35
Re: /stuck command bug - by RALL0 - 11.06.2013, 20:00
Re: /stuck command bug - by mouadys - 11.06.2013, 20:12
Re: /stuck command bug - by RALL0 - 11.06.2013, 20:17
Re: /stuck command bug - by mouadys - 11.06.2013, 20:46
Re: /stuck command bug - by mouadys - 11.06.2013, 21:03
Re: /stuck command bug - by RALL0 - 11.06.2013, 21:10

Forum Jump:


Users browsing this thread: 2 Guest(s)