Problemas con unos comandos.
#6

PHP код:
CMD:darlr(playeridparams[])
{
    if(
InfoJugador[playerid][jAdmin] < 3)
    return 
SendClientMessage(playerid, -1"Necesitas ser administrador para usar este comando");
    new 
JugadorCantidadRazon[25], string[128];
    if(
sscanf(params"uiS(Sin razуn)[25]"JugadorCantidadRazon))
    return 
SendClientMessage(playerid, -1"Uso: /darlr [PlayerID] [Cantidad] [Razon]");
    if(!
IsPlayerConnected(Jugador))
    return 
SendClientMessage(playerid, -1"Jugador no conectado");
    if(
Cantidad 99999)
    return 
SendClientMessage(playerid, -1"Cantidad invalida!");
    
InfoJugador[Jugador][jCoins] += Cantidad;
    
format(stringsizeof(string), "Informaciуn: El administrador %s te dio %d coins LR, razуn: %s"RetornarNombre(playerid), CantidadRazon);
    
SendClientMessage(Jugador, -1string);
    
format(stringsizeof(string), "Advertencia: El administrador %s le sumу %d coins LR a %s, razуn: %s"RetornarNombre(playerid), CantidadRetornarNombre(Jugador), Razon);
    
EnviarMensajeAdmin(-1string);
    
format(stringsizeof(string), "Informaciуn: Le diste %d coins a el jugador %s, razуn: %s"CantidadRetornarNombre(Jugador), Razon);
    
SendClientMessage(playerid, -1string);
    return 
true;

Reply


Messages In This Thread
Problemas con unos comandos. - by byAppeL - 12.03.2017, 00:52
Respuesta: Problemas con unos comandos. - by BrianFaria - 12.03.2017, 12:49
Respuesta: Problemas con unos comandos. - by byAppeL - 12.03.2017, 13:27
Re: Problemas con unos comandos. - by Unrea1 - 12.03.2017, 16:35
Respuesta: Problemas con unos comandos. - by byAppeL - 12.03.2017, 19:26
Re: Problemas con unos comandos. - by Danielu - 12.03.2017, 21:39
Re: Problemas con unos comandos. - by GlobitoPawn - 12.03.2017, 22:36
Respuesta: Problemas con unos comandos. - by byAppeL - 13.03.2017, 00:17
Re: Respuesta: Problemas con unos comandos. - by GlobitoPawn - 13.03.2017, 00:32
Respuesta: Problemas con unos comandos. - by byAppeL - 13.03.2017, 01:27

Forum Jump:


Users browsing this thread: 4 Guest(s)