Jump to content

Tutorial


kullrapper96

Recommended Posts

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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.