Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == DIALOG_619)
- {
- if( !response )
- return 1;
- new money,result[ 64 ];
- if(listitem == 0)
- {
- money = 500;
- strcat( result, "Folosire telefon la volan.", sizeof( result ) );
- }
- if(listitem == 1)
- {
- new giveplayerid = TicketPlayer[ playerid ];
- money = 900;
- strcat( result, "Condus neregulamentar.", sizeof( result ) );
- format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
- SendClientMessage(playerid, COLOR_SYN, gString);
- format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
- SendClientMessage(giveplayerid, COLOR_SYN, gString);
- PlayerInfo[giveplayerid][pDrivingLic] = -3;
- Update(giveplayerid,pDrivingLicx);
- }
- if(listitem == 2)
- {
- money = 700;
- strcat( result, "Oprire|Stationare|Parcare Neregulamentar.", sizeof( result ) );
- }
- if(listitem == 3)
- {
- money = 300;
- strcat( result, "Conducerea vehiculelor cu roti sparte.", sizeof( result ) );
- }
- if(listitem == 4)
- {
- new giveplayerid = TicketPlayer[ playerid ];
- money = 1000;
- strcat( result, "Folosire NOS.", sizeof( result ) );
- format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
- SendClientMessage(playerid, COLOR_SYN, gString);
- format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
- SendClientMessage(giveplayerid, COLOR_SYN, gString);
- PlayerInfo[giveplayerid][pDrivingLic] = -3;
- Update(giveplayerid,pDrivingLicx);
- }
- if(listitem == 5)
- {
- money = 800;
- strcat( result, "Folosire Hidraulice.", sizeof( result ) );
- }
- if(listitem == 6)
- {
- money = 350;
- strcat( result, "Faruri stinse (dupa ora 19:00).", sizeof( result ) );
- }
- if(listitem == 7)
- {
- new giveplayerid = TicketPlayer[ playerid ];
- money = 550;
- strcat( result, "Condus sub influenta alcoolului.", sizeof( result ) );
- format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
- SendClientMessage(playerid, COLOR_SYN, gString);
- format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
- SendClientMessage(giveplayerid, COLOR_SYN, gString);
- PlayerInfo[giveplayerid][pDrivingLic] = -3;
- Update(giveplayerid,pDrivingLicx);
- }
- if(listitem == 8)
- {
- money = 850;
- strcat( result, "Depasirea limitei de viteza cu -50 km/h.", sizeof( result ) );
- }
- if(listitem == 9)
- {
- new giveplayerid = TicketPlayer[ playerid ];
- money = 1200;
- strcat( result, "Depasirea limitei de viteza cu 50+ km/h.", sizeof( result ) );
- format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
- SendClientMessage(playerid, COLOR_SYN, gString);
- format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
- SendClientMessage(giveplayerid, COLOR_SYN, gString);
- PlayerInfo[giveplayerid][pDrivingLic] = -3;
- Update(giveplayerid,pDrivingLicx);
- }
- new giveplayerid = TicketFor[ playerid ];
- if( !IsPlayerConnected( giveplayerid ) )
- return 1;
- new giveplayer[ MAX_PLAYER_NAME ];
- GetPlayerName( giveplayerid, giveplayer, MAX_PLAYER_NAME );
- if(PlayerInfo[giveplayerid][pLevel] < 4)
- return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Ticket: {FFFFFF}Nu poti da amenda jucatorilor cu level 3!");
- new string[128];
- format(string, sizeof(string), "* I-ai dat o amenda lui %s in valoare de $%d, motiv: %s", giveplayer, money, (result));
- SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Offiterul %s ti-a dat o amenda in valoare de $%d, motiv: %s", GetName(playerid), money, (result));
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- format(string, sizeof(string), "* Scrie /accept ticket %d, pentru a plati amenda.", playerid);
- SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
- TicketMoney[playerid][giveplayerid] = 1;
- TicketMoney[giveplayerid][playerid] = money;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement