[Pedido] Sistema Score
#7

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        
SetPlayerScore(killeridGetPlayerScore(killerid) +1);
        
GameTextForPlayer(killerid"+1 Level!!!"20003);
    }
    return 
true;

Comando para setar Score:
PHP код:
CMD:setarscore(playeridparams[])
{
    static 
idscore;
    
    if(!
IsPlayerAdmin(playerid))
        return 
SendClientMessage(playerid, -1"Vocк nгo estб logado na rcon!");
    
    if(
sscanf(params"ud"idscore))
        return 
SendClientMessage(playerid, -1"Digite: /setarscore <id> <score>");
        
    if(!
IsPlayerConnected(id))
        return 
SendClientMessage(playerid, -1"Este ID й Invбlido!");
        
    static 
nameid[MAX_PLAYER_NAME], str[65];
    
GetPlayerName(idnameidsizeof nameid);
    
SetPlayerScore(idGetPlayerScore(id) +score);
    
    
format(strsizeof str"Vocк ganhou (%d) score do player %s"scorenameid);
    
SendClientMessage(id, -1str);
    return 
true;

Reply


Messages In This Thread
Sistema Score - by ThiagoGamemodes - 10.01.2017, 17:45
Re: Sistema Score - by Hayden_Almeida - 10.01.2017, 17:53
Re: Sistema Score - by ThiagoGamemodes - 10.01.2017, 18:23
Re: Sistema Score - by BobbMarley - 10.01.2017, 18:23
Re: Sistema Score - by Hayden_Almeida - 10.01.2017, 18:39
Re: Sistema Score - by RedMF - 10.01.2017, 18:41
Re: Sistema Score - by AuhMaru - 12.01.2017, 10:54

Forum Jump:


Users browsing this thread: 2 Guest(s)