Jump to content
  • 0

bug amenzi



6 answers to this question

Recommended Posts

  • 0

YCMD:ticket(playerid, params[], help) {
    if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti politist.");
    if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda!");
    if(OnDuty[playerid] != 1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu esti la datorie!");
    new id,string[128];
    if(sscanf(params, "u",id)) return SCM(playerid, COLOR_GREY, "USAGE: {FFFFFF}/ticket <playerid/name>");
    if(!IsPlayerConnected(id) || id == INVALID_PLAYER_ID) return SCM(playerid, COLOR_GREY, "Acel player nu este conectat.");
    if(!ProxDetectorS(8.0, playerid, id)) return SCM(playerid, -1, "Acel player nu este langa tine.");
    if(IsACop(id)) return SCM(playerid, COLOR_GREY, "Nu poti da amenda unui politist!");
    new szDialog[1000], title[100];
    format(title, 100, "Ticket > %s", GetName(id));
    for(new i = 0; i < 7; i++) {
        format(string, sizeof(string), "%s ($%d)\n", ticketName(i), ticketValue(i)); 
        strcat(szDialog, string);
    ShowPlayerDialog(playerid, DIALOG_TICKET, DIALOG_STYLE_LIST, title, szDialog, "Ok", "Cancel");                    
    SetPVarInt(playerid, "userID", id);                    
    return 1;

pentru gamemode burned

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.

Answer this question...

×   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.