SA-MP Forums Archive
Save object vehicles help - 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: Save object vehicles help (/showthread.php?tid=531522)



Save object vehicles help - Shinta307 - 13.08.2014

Hello .. Iam asking , this code not save after player logout , How do I make a save that player logout and login again remain the neon. Please help

Sorry for my bad english

pawn Код:
CMD:blueneon(playerid, params[])
{
    if(PlayerInfo[playerid][pMember] == 14||PlayerInfo[playerid][pLeader]==14)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetPVarInt(playerid, "neon", 1);
            SetPVarInt(playerid, "blue", CreateObject(18648,0,0,0,0,0,0));
            SetPVarInt(playerid, "blue1", CreateObject(18648,0,0,0,0,0,0));
            AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
            GameTextForPlayer(playerid, "~b~ Blue ~w~Neon has been added to your vehicle",3500,5);
        }
    }
    return 1;
}



Re: Save object vehicles help - Shinta307 - 13.08.2014

HELP


Re: Save object vehicles help - Shinta307 - 13.08.2014

Help