01.06.2014, 16:21
(
Последний раз редактировалось Edu4rd; 04.06.2014 в 08:05.
)
rezolvat
if(strcmp(cmd,"/licenses",true)==0)
{
if(IsPlayerConnected(playerid))
{
new timplic = PlayerInfo[playerid][pCarLicTime];
new atext[20];
if(PlayerInfo[playerid][pCarLicTime] == 0) { atext = "Expirata"; }
new text1[20];
if(PlayerInfo[playerid][pCarLicense]) { text1 = "{00FF00}Da"; } else { text1 = "{FF0000}Nu"; }
if(PlayerInfo[playerid][pCarLicTime] != 0)
{
format(string, sizeof(string), "{FFFFFF}Permis conducere: %s {FFFFFF} [Expira in %d ore]", text1,timplic);
ShowPlayerDialog(playerid, 94, DIALOG_STYLE_MSGBOX, "Licente",string, "Iesire", "");
}
if(PlayerInfo[playerid][pCarLicTime] == 0)
{
format(string, sizeof(string), "{FFFFFF}Permis conducere: %s", atext,timplic);
ShowPlayerDialog(playerid, 94, DIALOG_STYLE_MSGBOX, "Licente",string, "Iesire", "");
}
return 1;
}
if(strcmp(cmd,"/licenses",true)==0)
{
if(IsPlayerConnected(playerid))
{
new timplic = PlayerInfo[playerid][pCarLicTime];
new atext[20];
if(PlayerInfo[playerid][pCarLicTime] == 0) { atext = "Expirata"; }
new text1[20];
if(PlayerInfo[playerid][pCarLicense]) { text1 = "{00FF00}Da"; } else { text1 = "{FF0000}Nu"; }
if(PlayerInfo[playerid][pCarLicTime] != 0)
{
format(string, sizeof(string), "{FFFFFF}Permis conducere: %s {FFFFFF} [Expira in %d ore]", text1,timplic);
ShowPlayerDialog(playerid, 94, DIALOG_STYLE_MSGBOX, "Licente",string, "Iesire", "");
}
if(PlayerInfo[playerid][pCarLicTime] == 0 || PlayerInfo[playerid][liscense here] == 0)
{
format(string, sizeof(string), "{FFFFFF}Permis conducere: %s", atext,timplic);
ShowPlayerDialog(playerid, 94, DIALOG_STYLE_MSGBOX, "Licente",string, "Iesire", "");
}
return 1;
}