Jump to content
  • 0

Help Text


MrBlack

Question

Cum fac ca atunci cand intri/iesi din masina sa scrie ca ai iesit , sau ai intrat ..? :)

Ca am cautat dar nu mi-a reusit !

Si un car ownership are cineva?? platesc daca este nevoie :)

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Asa ?

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new pName[24];
    new string[128];
    GetPlayerName(playerid, pName, 24);
    format(string, 128, "* %s s-a urcat in masina .", pName);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    new pName[24];
    new string[128];
    GetPlayerName(playerid, pName, 24);
    format(string, 128, "* %s a coborat din masina .", pName);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    return 1;
}

i0418xcttya707ofg.jpg

Link to comment
Share on other sites

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new pName[24];
    new string[128];
    GetPlayerName(playerid, pName, 24);
    format(string, 128, "* %s s-a urcat in masina .", pName);
    SendMessageToAll(COLOR_RED, string);
    return 1;
}

Nu am verificat ca l-am facut in graba. Vezi daca merge, si asa faci si la alalalt.

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new pName[24];
    new string[128];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string),"%s s-a urcat in masina.", pName);
    SendClientMessageToAll(COLOR_RED, string);
    return 1;
}

logo.png

ATENTIE!!! Nu imi trimiteti mesaje private care au legatura cu scriptingul. NU mai scriptez.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.