SA-MP Forums Archive
[Ajuda] ' Comando.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ' Comando.. (/showthread.php?tid=476342)



' Comando.. - JuniiorZ - 17.11.2013

Entгo Galera, Andei fasendo um Sistema para quando o Player Pular Ele cair no Chгo... Mais queria Colocar apenas se Ele fiser este cmd 5x ele caisse no chгo....

pawn Код:
new pulonome[MAX_PLAYER_NAME+1], stringp[144+MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, pulonome, sizeof(pulonome));
    if ((newkeys & KEY_SPRINT) && (newkeys & KEY_JUMP))
    {
    format(stringp, sizeof(stringp), "{8000FF}|'PULOS'| {C0C0C0}(({80FF00} %s {C0C0C0}Acaba de Levar um Tombo. ))", pulonome);
    SendClientMessageToAll(playerid, stringp);
    SendClientMessage(playerid, -1, "{8000FF}|'DICA'|{FFFFFF} Nгo Pule Ou Continuarб Levando Tombos.");
    ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_fallocu",4.1,0,1,1,0,0);
   }
return 0;
}



Re: ' Comando.. - P1c4550 - 17.11.2013

\/
PHP код:
    new pulonome[MAX_PLAYER_NAME+1], stringp[144+MAX_PLAYER_NAME+1], count;
    
GetPlayerName(playeridpulonomesizeof(pulonome));
    if ((
newkeys KEY_SPRINT) && (newkeys KEY_JUMP))
    {
        
count++;
        if(
count == 5)
        {
              
count 0;
            
format(stringpsizeof(stringp), "{8000FF}|'PULOS'| {C0C0C0}(({80FF00} %s {C0C0C0}Acaba de Levar um Tombo. ))"pulonome);
            
SendClientMessageToAll(playeridstringp);
            
SendClientMessage(playerid, -1"{8000FF}|'DICA'|{FFFFFF} Nгo Pule Ou Continuarб Levando Tombos.");
            
ApplyAnimation(playerid"GYMNASIUM""gym_jog_fallocu",4.1,0,1,1,0,0);
       }
   }
    return 
0