Jump to content

Recommended Posts

Posted

Salut ! imi puteti spune si mie de ce nu functioneaza comanda "/mdc" ? Adica cand intru intr-o masina de PD si dau comanda spune ca nu sunt intr-o masina de politie. De ce?

Comanda :

Quote

CMD:mdc(playerid, params[])
{
    new userID, tmpcar = GetPlayerVehicleID(playerid);
    if(IsPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_RED, "Nu esti logat!");
    if(sscanf(params, "u", userID)) return SendClientMessage(playerid, COLOR_GREY, "Sintaxa: {FFFFFF}/mdc <playerid>");
    if(!IsPlayerLogged[userID]) return SendClientMessage(playerid, COLOR_GREY, "Acel player nu este logat!");
    if(userID == playerid) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti folosi aceasta comanda asupra ta.");
    if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti politist!");
    if(!IsACopCar(tmpcar) || !PlayerToPoint(5.0, playerid, 253.9280,69.6094,1003.6406)) return SendClientMessage(playerid, COLOR_WHITE, "Nu esti in masina de politie/sectie LSPD!");
    if(userID != INVALID_PLAYER_ID)
    {
        format(szMessage, sizeof(szMessage), "Nume : %s", GetNameEx(playerid));
        SendClientMessage(playerid, COLOR_WHITE,szMessage);
        format(szMessage, sizeof(szMessage), "Wanted level : %d", WantedLevel[userID]);
        SendClientMessage(playerid, -1,szMessage);
        format(szMessage, sizeof(szMessage), "Infractiune : %s", PlayerCrime[userID][pAccusedof]);
        SendClientMessage(playerid, -1,szMessage);
        format(szMessage, sizeof(szMessage), "Victima : %s", PlayerCrime[userID][pVictim]);
        SendClientMessage(playerid, -1,szMessage);
        format(szMessage, sizeof(szMessage), "Reclamant : %s", PlayerCrime[userID][pAccusing]);
        SendClientMessage(playerid, -1,szMessage);
        format(szMessage, sizeof(szMessage), "Acuzat : %s", PlayerCrime[userID][pBplayer]);
        SendClientMessage(playerid, -1,szMessage);
    }
    return 1;
}

 

Posted
On 3/26/2016 at 16:24, Mister said:

Incearca 

 if(!IsACopCar(tmpcar) && !PlayerToPoint(5.0, playerid, 253.9280,69.6094,1003.6406)) r

Acuma il loc de numele lui imi da numele meu

Si la

Infractiune , etc 

Arata "*********"

Doar stelute arata.

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.