[Ajuda] SetScore
#9

Quote:
Originally Posted by PilateGR
Посмотреть сообщение
Improvisei este aqui pra vocк:

Код:
CMD:setscore(playerid, params[])
{
    new
	String[130],
	ID,
	SCORE
    ;

    if(sscanf(params, "ui", ID, SCORE))
	return SendClientMessage(playerid, -1, "/SetScore [ID] [SCORE].");
		
    if(!IsPlayerConnected(ID))
	return SendClientMessage(playerid, -1, "Player Invбlido.");
    
    if(SCORE < 0 || SCORE > 99999)
	return SendClientMessage(playerid, -1, "Setagem de 0 a 99999.");
    
    if(Player[playerid][Admin] < 1)
	return SendClientMessage(playerid, -1, "Vocк nгo tem permissгo para usar o comando.");
    
    format(String, sizeof(String), "Admin: %s setou seu score", Nome(playerid));
    SendClientMessage(ID, -1, String);
    
    SetPlayerScore(ID, GetPlayerScore(ID) + SCORE);
    SalvarDados(ID);
    return true;
}
Deleta este code seu e substitua por este novo acima.

Obs: nгo foi testado!
PHP код:
Foi certinho +repaproveitando o topico pode me dizer como posso usar este comando й para dar /setscore ai todos que tive se online ia ganhar o score dado pelo admin 
Reply


Messages In This Thread
SetScore - by BrGabrielBr - 18.03.2018, 23:47
Re: SetScore - by FerrariL - 18.03.2018, 23:53
Re: SetScore - by BrGabrielBr - 18.03.2018, 23:58
Re: SetScore - by PilateGR - 19.03.2018, 00:00
Re: SetScore - by BrGabrielBr - 19.03.2018, 00:09
Re: SetScore - by Lontresca - 19.03.2018, 00:13
Re: SetScore - by PilateGR - 19.03.2018, 00:13
Re: SetScore - by SpikeCompiler - 19.03.2018, 00:17
Re: SetScore - by BrGabrielBr - 19.03.2018, 00:44
Re: SetScore - by PilateGR - 19.03.2018, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)