[AJUDA/PEDIDO] Comando nгo achados
#5

Quote:
Originally Posted by ViCtOr_Mc
View Post
E aew gente tudo bem? Eu fiz meu GM de Drift do 0, mais com a base do meu outro GM que eu tinha editado, pois bem, eu queria o comando /pintar, so que bem explicativo, se quiser nгo precisa passar o comando inteiro, mais no caso, explicar como colocar novas cores por dialog, Obrigado!
Basta colocar o ID da cor:

PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/pintar"true) == 0)
    {
        if(!
IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid0xFF0000FF"Vocк nгo estб em nenhum veiculo.");
        
ShowPlayerDialog(playerid49DIALOG_STYLE_INPUT"CORES""Digite o ID da primeira cor:""Enviar""Cancelar");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 49)
    {
        if(
response)
        {
            if(!
strlen(inputtext)) return ShowPlayerDialog(playerid49DIALOG_STYLE_INPUT"CORES""Digite o ID da primeira cor:""Enviar""Cancelar");
            if(
strval(inputtext) > 126) return ShowPlayerDialog(playerid49DIALOG_STYLE_INPUT"CORES""Cor Invбlida.\nDigite o ID da primeira cor novamente:""Enviar""Cancelar");
            
SetPVarInt(playerid"Cor"strval(inputtext));
            
ShowPlayerDialog(playerid50DIALOG_STYLE_INPUT"CORES""Digite o ID da segunda cor:""Enviar""Cancelar");
        }
    }
    if(
dialogid == 50)
    {
        if(
response)
        {
            if(!
strlen(inputtext)) return ShowPlayerDialog(playerid50DIALOG_STYLE_INPUT"CORES""Digite o ID da segunda cor:""Enviar""Cancelar");
            if(
strval(inputtext) > 126) return ShowPlayerDialog(playerid50DIALOG_STYLE_INPUT"CORES""Cor Invбlida.\nDigite o ID da segunda cor novamente:""Enviar""Cancelar");
            
ChangeVehicleColor(GetPlayerVehicleID(playerid), GetPVarInt(playerid"Cor"), strval(inputtext));
            
DeletePVar(playerid"Cor");
        }
    }
    return 
1;

Quote:
Originally Posted by ViCtOr_Mc
View Post
Mais outra dъvida ou pedido, e que queria que quando algum admin kickava ou bania a pessoa, a skin da pessoa se teleportava, tipo sub mundo, so que sentado em algum lugar com a animaзгo /lay, vou ver se acho uma print pra ver como eu quero ok?
Han ?

Quote:
Originally Posted by feliperch
View Post
PHP Code:
new Flood[MAX_PLAYERS];
public 
OnPlayerCommandText(playerid,cmdtext[]) {
    if(
Flood[playerid] > gettime) return SendClientMessage(playerid,-1,"Sem flood");
    
Flood[playerid] = gettime() + 5;
    return 
true;

1 - Ele queria um Anti-Caps, nгo ?

2 - O correto seria:

PHP Code:
new Flood[MAX_PLAYERS];
public 
OnPlayerCommandText(playerid,cmdtext[]) 
{
    if(
Flood[playerid] > gettime()) return SendClientMessage(playerid,-1,"Sem flood");
    
        
// COMANDOS
    
    
Flood[playerid] = gettime() + 5;
    return 
true;

Reply


Messages In This Thread
[AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 10.07.2011, 16:05
Re: [AJUDA/PEDIDO] Comando nгo achados - by Macintosh - 10.07.2011, 16:18
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 10.07.2011, 16:54
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 10.07.2011, 16:58
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 10.07.2011, 17:08
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 10.07.2011, 17:23
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 10.07.2011, 23:17
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 10.07.2011, 23:30
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 13:26
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 14:23
Re: [AJUDA/PEDIDO] Comando nгo achados - by Macintosh - 11.07.2011, 15:01
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 16:53
Re: [AJUDA/PEDIDO] Comando nгo achados - by rjjj - 11.07.2011, 17:07
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 17:16
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 17:32
Re: [AJUDA/PEDIDO] Comando nгo achados - by rjjj - 11.07.2011, 17:33
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 17:49
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 11.07.2011, 18:02
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 19:14
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 20:41
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 11.07.2011, 21:09
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 21:13
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 11.07.2011, 21:23
Re: [AJUDA/PEDIDO] Comando nгo achados - by RockFire - 11.07.2011, 21:32
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 21:47
Re: [AJUDA/PEDIDO] Comando nгo achados - by CocaC0la - 11.07.2011, 21:59
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 11.07.2011, 22:05
Re: [AJUDA/PEDIDO] Comando nгo achados - by rjjj - 12.07.2011, 03:34
Re: [AJUDA/PEDIDO] Comando nгo achados - by [S]trong - 12.07.2011, 04:20
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 12.07.2011, 12:43
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 12.07.2011, 14:22
Re: [AJUDA/PEDIDO] Comando nгo achados - by [S]trong - 12.07.2011, 14:48
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 12.07.2011, 15:10
Re: [AJUDA/PEDIDO] Comando nгo achados - by [S]trong - 12.07.2011, 15:34
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 12.07.2011, 15:35
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 12.07.2011, 16:13
Re: [AJUDA/PEDIDO] Comando nгo achados - by Shadoww5 - 13.07.2011, 12:45
Re: [AJUDA/PEDIDO] Comando nгo achados - by ViCtOr_Mc - 13.07.2011, 14:23

Forum Jump:


Users browsing this thread: 12 Guest(s)