SA-MP Forums Archive
Trouble with OnPlayerDissconnect - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Trouble with OnPlayerDissconnect (/showthread.php?tid=390600)



Trouble with OnPlayerDissconnect - UnknownGamer - 07.11.2012

pawn Код:
new mycar;
    new mycar2;
    mycar = PlayerInfo[playerid][pPcarkey];
    mycar2 = PlayerInfo[playerid][pPcarkey2];

    if(mycar != 9999)
    {
        SetVehicleVirtualWorld(mycar, 64);
    }
    if(mycar2 != 9999)
    {
        SetVehicleVirtualWorld(mycar2, 64);
    }
Anybody know the issue?


Re: Trouble with OnPlayerDissconnect - Glad2BeHere - 07.11.2012

pawn Код:
PlayerInfo[playerid][pPcarkey1] = GetPlayerVehicleID(playerid);
PlayerInfo[playerid][pPcarkey2] = GetPlayerVehicleID(playerid);
This will send the vehicle id = to the playercarkey to that virtual work tell me if its works (Y) really hope it did


Re: Trouble with OnPlayerDissconnect - UnknownGamer - 07.11.2012

Quote:
Originally Posted by Glad2BeHere
Посмотреть сообщение
pawn Код:
PlayerInfo[playerid][pPcarkey1] = GetPlayerVehicleID(playerid);
PlayerInfo[playerid][pPcarkey2] = GetPlayerVehicleID(playerid);
This will send the vehicle id = to the playercarkey to that virtual work tell me if its works (Y) really hope it did
Sure did, cheers pal!

(And before Kreyg replies to this thread, trolling, saying "I'm copying the depspawn thing, I'm not. Look at the work, I'm actually making a freeroam server, so before you come trolling here Mr, think about what you're saying in future).