Where to put that CMD ?
#7

pawn Код:
CMD:vstorage(playerid, params[])
{
    new vstring[1024];
    for(new i, iModelID; i < MAX_PLAYERVEHICLES; i++) {
        if((iModelID = PlayerVehicleInfo[playerid][i][pvModelId] - 400) >= 0) {
            if(PlayerVehicleInfo[playerid][i][pvImpounded]) {
                format(vstring, sizeof(vstring), "%s\n%s (impounded)", vstring, VehicleName[iModelID]);
            }
            else if(PlayerVehicleInfo[playerid][i][pvDisabled]) {
                format(vstring, sizeof(vstring), "%s\n%s (disabled)", vstring, VehicleName[iModelID]);
            }
            else if(!PlayerVehicleInfo[playerid][i][pvSpawned]) {
                format(vstring, sizeof(vstring), "%s\n%s (stored)", vstring, VehicleName[iModelID]);
            }
            else format(vstring, sizeof(vstring), "%s\n%s (spawned)", vstring, VehicleName[iModelID]);
        }
        else strcat(vstring, "\nEmpty");
    }
    ShowPlayerDialog(playerid, VSTORAGE, DIALOG_STYLE_LIST, "Vehicle storage", vstring, "(De)spawn", "Cancel");
    return 1;
}
Like this one ?
Reply


Messages In This Thread
Where to put that CMD ? - by Red_Dragon. - 30.11.2012, 16:16
Re: Where to put that CMD ? - by teomakedonija - 30.11.2012, 16:29
Re: Where to put that CMD ? - by Faisal_khan - 30.11.2012, 16:29
Re: Where to put that CMD ? - by Red_Dragon. - 30.11.2012, 16:33
Re: Where to put that CMD ? - by thefatshizms - 30.11.2012, 16:34
Re: Where to put that CMD ? - by Faisal_khan - 30.11.2012, 16:37
Re: Where to put that CMD ? - by Red_Dragon. - 30.11.2012, 16:42
Re: Where to put that CMD ? - by thefatshizms - 30.11.2012, 16:46
Re: Where to put that CMD ? - by Plovix - 30.11.2012, 16:47
Re: Where to put that CMD ? - by NumbSkull - 30.11.2012, 17:02

Forum Jump:


Users browsing this thread: 2 Guest(s)