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

Recommended Posts

Posted

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;
}

Posted

ONPLAYERENTERVEHICLE >>


if(YoutuberCar(newcar)) {

   if(PlayerInfo[playerid][pYouTuber] != 1 ) { 

RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,COLOR_WHITE, "{999999}You are not an YouTuber!");


}
}

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.