[AYUDA]Comando
#6

pawn Код:
dcmd_setkills(playerid,params[]) {
    if(PlayerInfo[playerid][Level] == 5) {
        new string[128], tmp[256], tmp2[256], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
        if(!strlen(tmp) || !strlen(tmp2)) return SendClientMessage(playerid, red, "USA: /setkills [playername] [kills]");
        if(strlen(tmp2) < 1 || strlen(tmp2) > MAX_PLAYER_NAME) return SendClientMessage(playerid,red,"ERROR: No puedes poner un Score tan corto");
        if(udb_Exists(tmp)) {
            dUserSetINT(tmp).("kills",strval(tmp2));
            PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
            format(string, sizeof(string),"ACCOUNT: Haz cambiado la cantidad de kills a \"%s\", Cantidad:\"%s\"", tmp, tmp2);
            return SendClientMessage(playerid,yellow,string);
        } else return SendClientMessage(playerid,red, "ERROR: Este jugador no esta registrado o no tiene una cuenta");
    } else return SendClientMessage(playerid,red,"ERROR: Tu no puedes cambiarle la cantidad de KILLS a alguien");
}
Reply


Messages In This Thread
[AYUDA]Comando - by Lobo - 01.09.2010, 23:31
Respuesta: [AYUDA]Comando - by laborgward - 02.09.2010, 05:08
Re: [AYUDA]Comando - by Lobo - 02.09.2010, 05:33
Re: [AYUDA]Comando - by MrDeath537 - 02.09.2010, 05:41
Re: [AYUDA]Comando - by Lobo - 02.09.2010, 05:42
Re: [AYUDA]Comando - by MrDeath537 - 02.09.2010, 05:50
Re: [AYUDA]Comando - by Lobo - 03.09.2010, 00:20
Re: [AYUDA]Comando - by MrDeath537 - 03.09.2010, 00:42
Re: [AYUDA]Comando - by Miguel - 03.09.2010, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)