Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(dialogid)
- {
- case DIALOG_VIPNAME:
- {
- if(!response) return true;
- new carid = GetPlayerVehicleID(playerid), idcar = -1;
- for(new vv; vv < MAX_PERSONAL_VEHICLES; vv++)
- {
- if(carid == PlayerInfo[playerid][pCarID][vv]) idcar = vv;
- }
- if(carid == PlayerInfo[playerid][pCarID][idcar] && PlayerInfo[playerid][pCarVIP][idcar] > 0)
- {
- new string[128];
- format(CarVipName[playerid][idcar], 20, inputtext);
- SetVipText(playerid, idcar);
- mysql_format(SQL, string, sizeof string, "UPDATE `cars` SET `VipText` = '%s' WHERE `ID` = '%d' LIMIT 1", inputtext, PlayerInfo[playerid][pCar][idcar]);
- mysql_tquery(SQL, string, "", "");
- format(string, sizeof string, "Text pentru vehicul setat: %s.", inputtext);
- SCM(playerid, -1, string);
- }
- }
- }
- CMD:vipname(playerid, params[])
- {
- if(!IsPlayerInAnyVehicle(playerid)) return SCM(playerid, -1, "Nu te afli intr-un vehicul.");
- ShowPlayerDialog(playerid, DIALOG_VIPNAME, DIALOG_STYLE_INPUT, "VIP NAME", "Scrie textul vip mai jos:", "Done", "Exit");
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement