Jump to content

problema mdc


david1995

Recommended Posts

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

 

Link to comment
Share on other sites

Incearca 

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

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Eu ti-am aratat de ce primeai mesajul acela, cat despre stelute asa e sistemul facut nu am ce sa ii fac eu

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
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.