[Ajuda] ajuda aqui com zcmd
#1

A duvida й como passar isso para zcmd eu tentei mas dava varios erros enfin se poderem me ajudar.
PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
       new
        
cmd[128], idxtmp[128];
    
cmd strtok(cmdtextidx);
    
GetPlayerPos(playeridppos[0], ppos[1], ppos[2]);
    if(
strcmp(cmd"/v"true) == || strcmp(cmd"/criarveiculo"true) == 0)
    {
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Uso correto: /v [id veнculo] [cor1] [cor2]");
            return 
1;
        }
        new
            
veiculo strval(tmp);
        if(
veiculo 400 || veiculo 611)
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Somente veнculos entre os ID: 400 б 611");
            return 
1;
        }
        
tmp strtok(cmdtextidx);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Uso correto: /v [id veнculo] [cor1] [cor2]");
            return 
1;
        }
        new
            
color1 strval(tmp);
        
tmp strtok(cmdtextidx);
        new
            
color2 strval(tmp);
        if(!
strlen(tmp))
        {
            
SendClientMessage(playerid0xFF3300AA"| ERRO | Uso correto: /v [id veнculo] [cor1] [cor2]");
            return 
1;
        }
        
DestroyVehicle(VeiculoID[playerid]);
        
vModel CreateVehicle(veiculoppos[0], ppos[1], ppos[2], 360color1color2, -1);
        
PutPlayerInVehicle(playeridvModel0);
        
VeiculoID[playerid] = GetPlayerVehicleID(playerid);
        return 
1;
        }
    return 
0;

Reply


Messages In This Thread
ajuda aqui com zcmd - by Bruno Alves - 25.07.2012, 13:47
Re: ajuda aqui com zcmd - by .FuneraL. - 25.07.2012, 13:53
Re: ajuda aqui com zcmd - by Math3us - 25.07.2012, 13:55
Re: ajuda aqui com zcmd - by Bruno Alves - 25.07.2012, 14:09
Re: ajuda aqui com zcmd - by .FuneraL. - 25.07.2012, 14:16
Re: ajuda aqui com zcmd - by Bruno Alves - 25.07.2012, 14:26
Re: ajuda aqui com zcmd - by .FuneraL. - 25.07.2012, 14:32
Re: ajuda aqui com zcmd - by Bruno Alves - 25.07.2012, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)