14.05.2016, 11:41
(
Последний раз редактировалось Zorono; 11.12.2016 в 15:08.
)
deletted
new vowned[8];
CMD:cars(playerid,params[]) {
new player1;
if(sscanf(params,"i",player1)) {
new handle[770],string[128];
format(string,sizeof string,"{FFFF00}NickName : %s\n",pName(playerid));
strcat(handle,string);
for(new i = 0; i < sizeof(vowned); i++)
{
new string[100];
format(string,sizeof(string),"\n{FFFFFF}Slot %i: Empty", (i+1));
if(!PlayerInfo[playerid][vowned[i]]) strcat(handle,string);
format(string,sizeof string,"\n{FFFFFF}Slot %i: {33FF33}%s {FFFFFF}ID: {33FF33}%d",(i+1),VehicleInfo[GetPlayerVehicleID(playerid)][name],GetPlayerVehicleID(playerid));
strcat(handle,string);
}
return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Player List", handle, "Ok", "");
}
new handle[770],string[128];
format(string,sizeof string,"{FFFF00}NickName : %s\n",pName(player1));
strcat(handle,string);
for(new i = 0; i < sizeof(vowned); i++)
{
new string[100];
format(string,sizeof(string),"\n{FFFFFF}Slot %i: Empty", (i+1));
if(!PlayerInfo[player1][vowned[i]]) strcat(handle,string);
format(string,sizeof string,"\n{FFFFFF}Slot %i: {33FF33}%s {FFFFFF}ID: {33FF33}%d",(i+1),VehicleInfo[GetPlayerVehicleID(player1)][name],GetPlayerVehicleID(player1));
strcat(handle,string);
}
return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Player List", handle, "Ok", "");
}
CMD:cars(playerid, params[])
{
new player1;
if (sscanf(params, "i", player1)) player1 = playerid;
new handle[700], string[85];
format(handle, sizeof handle, "{FFFF00}NickName : %s\n", pName(player1));
for (new i; i != 8; i++)
{
if (!PlayerInfo[player1][vowned][i]) format(string, sizeof string, "\n{FFFFFF}Slot %i: Empty", i + 1);
else format(string, sizeof string, "\n{FFFFFF}Slot %i: {33FF33}%s {FFFFFF}ID: {33FF33}%d", i + 1, VehicleInfo[PlayerInfo[player1][vowned][i]][name], PlayerInfo[player1][vowned][i]);
strcat(handle, string);
}
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Player List", handle, "Ok", "");
return 1;
}