PutPlayerInVehicle call himself?!
#1

Well, let me explain..


Today i have been using this command:

pawn Код:
if (!strcmp(cmd, "/gethere", true))
    {
        if (PlayerInfo[playerid][pAdmin] > 0 || PlayerInfo[playerid][pHelper] > 0)
        {

            tmp = strtok(cmdtext, idx);
            if (!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethere [id]");
            new gid;
            gid = ReturnUser(tmp);
            if (!IsPlayerConnected(gid)) return SendClientMessage(playerid, COLOR_GRAD2, "The player is offline.");
            new Float:x, Float:y, Float:z;
            GetPlayerPos(playerid, x, y, z);
            SetPlayerPos(gid, x+1, y+1, z);
            SetPlayerInterior(gid, GetPlayerInterior(playerid));
            SetPlayerVirtualWorld(gid, GetPlayerVirtualWorld(playerid));
            format(string, sizeof(string), "{e53535}(Informatie necesarг){FF6633} %s te-a teleportat la el.",GetName(playerid));
            SendClientMessage(gid, -1, string);
            format(string, sizeof(string), "{e53535}(Informatie necesarг){FF6633} %s a fost teleportat la tine.",GetName(gid));
            SendClientMessage(playerid, -1, string);

        }
        return true;
    }
Everything fine except the fact SUDDENTLY i was put in a car from a player's home , wtf?


I was searching on my entire gamemode and nothing , how is this possible to be put in a car without calling the putplayerinvehicle please , fix ? my players have this bug sometimes
Reply
#2

Seems very weird since no vehicles are used in that command. It can't possibly be that command that's bugging you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)