2 funciones
#1

Hola, yo otra vez..

Quisiera saber como agregarle a este comando para que al usarlo alguien pueda poner el precio y el otro ponga /aceptar certificado.
y otra cosa, como hago para que al darle un certificado este dure X tiempo, como uso un timer pero por varios dias?


Quote:

CMD:licenciacoche(playerid, params[])
{
if(!Licencieros(playerid)) return Message(playerid, COLOR_WHITE, "Info: No eres licenciero.");
new string[128], giveplayerid;
if(!Licencieros(playerid)) return SendClientMessageEx(playerid, COLOR_GREY, "Info: No puedes usar este comando.");
if(sscanf(params, "d", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "Utiliza: /licenciacoche (playerid) [Ayuda: Que te paguen antйs de darlas, minimo $1.500]");
if(Info[giveplayerid][pSeguroMedico] == 1) return SendClientMessageEx(playerid, COLOR_WHITE, "Este jugador ya tiene un certificado mйdico.");
if(IsPlayerConnected(giveplayerid))
{
if(Info[giveplayerid][pSeguroMedico] == 0)
{
format(string, sizeof(string), "Le diste una licencia de conducciуn a %s.", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_GREY, string);
format(string, sizeof(string), "El mйdico %s te ha dado un certificado mйdico.", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_GREY, string);
Info[giveplayerid][pSeguroMedico] = 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "{E3D2A9}Info:{FFFFFF} La ID introducida es invбlida.");
}
return 1;
}

Gracias
Reply


Messages In This Thread
2 funciones - by Nicosm - 06.01.2017, 04:25
Re: 2 funciones - by SilverGaming - 06.01.2017, 13:04
Re: 2 funciones - by tostad0r - 06.01.2017, 13:42
Re: 2 funciones - by SilverGaming - 06.01.2017, 15:09
Re: 2 funciones - by Swedky - 06.01.2017, 15:43
Re: 2 funciones - by tostad0r - 06.01.2017, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)