Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted

Mergi la OnPlayerDisconnect , verifica daca player-ul are masini personale iar daca are fa ceva de genul :

 

if(PlayerInfo[playerid][pPcarkey] != 1)
{
    new vehicleid = PlayerInfo[playerid][pPcarkey];
    SetVehicleVirtualWorld(vehicleid, 255);
}
if(PlayerInfo[playerid][pPcarkey2] != 1)
{
    new vehicleid = PlayerInfo[playerid][pPcarkey2];
    SetVehicleVirtualWorld(vehicleid, 255);
}
if(PlayerInfo[playerid][pPcarkey3] != 1)
{
    new vehicleid = PlayerInfo[playerid][pPcarkey3];
    SetVehicleVirtualWorld(vehicleid, 255);
}

pPcarkey este variabila pentru masinile personale de la mine din gamemode tu inlocuiesti pPcarkey cu ce variabilia ai tu .

 

Iar ca masinile sa apara cand player-ul se conecteaza faci la fel ca mai sus doar ca in loc de 255 pui 0 .

  • Upvote 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.