Jump to content

Masina de youtuber

Recommended Posts

Salutare, stie cineva cum pot face ca la masina de youtuber sa nu se mai poata urca in ea doar youtuberul care a dat spawn la masinia sau care are functia de youtuber??

YCMD:car(playerid, params[], help) {
    if(PlayerInfo[playerid][pYouTuber] != 1) return 1;
    if(SpawnedCarYT[playerid] == 1) return SCM(playerid, COLOR_GREY, "Ai spawnat deja o masina!");
    SpawnedCarYT[playerid] = 1;
    new Float:X,Float:Y,Float:Z,string[100];
    GetPlayerPos(playerid, X,Y,Z);
    YouTuberCar[playerid] = CreateVehicleEx(411, X,Y,Z, 0.0, 205, 205, -1, 0);
    format(string, sizeof(string), "({E52C2F}YouTuber Info{FFFFFF}) %s si-a spawnat masina de youtuber.",GetName(playerid));
    SendAdminMessage(COLOR_WHITE, string, 1);
    nameobject[YouTuberCar[playerid]] = CreateDynamicObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
    SetDynamicObjectMaterialText(nameobject[YouTuberCar[playerid]], 0, "{E52C2F}You{FFFFFF}Tuber", OBJECT_MATERIAL_SIZE_256x128, "Arial", 25, 1, -1, 0, 1);
    AttachDynamicObjectToVehicle(nameobject[YouTuberCar[playerid]], YouTuberCar[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
    LinkVehicleToInterior(YouTuberCar[playerid], GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(YouTuberCar[playerid], GetPlayerVirtualWorld(playerid));
    PutPlayerInVehicleEx(playerid, YouTuberCar[playerid], 0);
    return true;

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.

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.