16.08.2012, 21:40
Quote:
|
Tan sensillo? seguro no bugeare nada ? por que mira, al poner /llaves aparece un dialog, y te la opcion de spawnear y despawnear tus coches, asi mira :
Код:
CMD:llaves(playerid, params[])
{
new vstring[512], stext[11];
for(new i; i < MAX_PLAYERVEHICLES; i++)
{
switch(PlayerVehicleInfo[playerid][i][pvSpawned])
{
case 0: stext = "stored";
case 1: stext = "spawned";
}
if(PlayerVehicleInfo[playerid][i][pvModelId] != 0)
format(vstring, sizeof(vstring), "%s\n%s - (%s)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], stext);
else if(PlayerVehicleInfo[playerid][i][pvImpounded] == 1)
format(vstring, sizeof(vstring), "%s\n%s (Embargado) (%s)", vstring, VehicleName[PlayerVehicleInfo[playerid][i][pvModelId] - 400], stext);
else
format(vstring, sizeof(vstring), "%s\nVacнo", vstring);
}
SafeDialogEx(playerid, CARSPAWN, DIALOG_STYLE_LIST, "Tus Coches:", vstring, "(De)Spawn", "Salir");
return 1;
}
|


