Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Commandes Admin
- else if(!strcmp(cmd, "add", true))
- {
- if(sscanf(params,"{s[32]}iii", model, color1, color2))
- {
- SendClientMessage(playerid, -1, "{a3a3a3}COMMANDE: {FFFFFF}(/v)ehicule add [model] [color1] [color2]");
- return 1;
- }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, a);
- //CreateVehicle(model, x, y, z, a, color1, color2, -1, 0);
- mysql_format(mysql, query, sizeof(query), "INSERT INTO serveur_vehicules (model, x, y, z, a, color1, color2, immatriculation) VALUES('%d', '%f', '%f', '%f', '%f', '%d', '%d', 'AUCUNE')", model, x, y, z, a, color1, color2);
- mysql_pquery(mysql, query, "SQL_CallVehicleCreate", "idffffdd", playerid, model, x, y, z, a, color1, color2);
- return 1;
- }
- else if(!strcmp(cmd, "stats", true))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- GetVehicleHealth(vehicleid, vhealth);
- if(!vInfo[vehicleid][vExist]) return 1;
- format(string, sizeof(string), "Immatriculation:[%s], Health:[%.2f], Couleur principale[{%06x}%d{FFFFFF}], Couleur secondaire[{%06x}%d{FFFFFF}]", vInfo[vehicleid][vPlaque], vhealth, VehicleColoursTableRGBA[vInfo[vehicleid][vColor1]] >>> 8, vInfo[vehicleid][vColor1], VehicleColoursTableRGBA[vInfo[vehicleid][vColor2]] >>> 8, vInfo[vehicleid][vColor2]);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment