1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| if(strcmp(cmdtext, "/bestellung", true)==0 && gTeam[playerid] == TEAM_AUTOHAUS){
new tmp[256]; new modelid;
tmp = strtok(cmd, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "Benutze: /bestellung [modelid]"); return 1; } modelid = strval(tmp);
SendClientMessage(playerid,0xFFFFFFFF,"Auto gespeichert."); for(new count;count<MAX_VEHICLES;count++){ format(string, sizeof(string),"vehicle_%d.sav",count); //Läuft von 1-***, nicth nach vehicle id //format(string, sizeof(string),"vehicle_%d.sav",vehicleid); //nennt die datei wie die vehi cleid if(!dini_Exists(string)){ dini_Create(string); dini_IntSet(string,"model",modelid); dini_FloatSet(string,"x",(2778.2478)); dini_FloatSet(string,"y",(-2437.1582)); dini_FloatSet(string,"z",(13.3631)); dini_FloatSet(string,"a",(91.5577)); count = MAX_VEHICLES; CreateVehicle(modelid,2778.2478,-2437.1582,13.3631,91.5577,0,0,300000);
} } return 1; }
|