[Pedido] comando /ask
#1

eae glr dnv eu aqui :S eu fiz um comando chamado /respond porem eu tentei fazer o comando /ask e nгo consegui pesquisei bastante topicos aq e nгo achei mesmo poderiam me ajudar ?

comando q eu fiz ><

PHP код:
CMD:respond(playeridparams[])
{
    new 
id;
    new 
msg[50];
    new 
str[120];
    new 
str2[120];
    new 
nome[MAX_PLAYER_NAME];
    new 
nome2[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,nome,MAX_PLAYER_NAME);
    
GetPlayerName(id,nome2,MAX_PLAYER_NAME);
    if(
Helper[playerid] < 1) return SendClientMessage(playerid, -1"{FFFFFF} You do not have permission!{FFFFFF}");
    if(
sscanf(params,"us",id,msg)) return SendClientMessage(playerid, -1"| USE | /respond [id] [message]");
    if(!
IsPlayerConnected(id)) return SendClientMessage(playerid, -1"Player is not connected!");
    
format(str,120,"* {FFFFFF} Your question has been answered by helper %s : %s ",nome,msg);
    
format(str2,120,"| Help | You just answer doubts %s",nome2);
    
SendClientMessage(id,-1,str);
    
SendClientMessage(playerid, -1,str2);
    return 
1;
    } 
Reply


Messages In This Thread
comando /ask - by DKDarkking - 27.08.2015, 00:08
Re: comando /ask - by iTakelot - 27.08.2015, 00:20
Re: comando /ask - by DKDarkking - 27.08.2015, 00:27
Re: comando /ask - by iTakelot - 27.08.2015, 00:37
Re: comando /ask - by DKDarkking - 27.08.2015, 00:41
Re: comando /ask - by iTakelot - 27.08.2015, 00:48
Re: comando /ask - by JPedro - 27.08.2015, 16:42
Re: comando /ask - by DKDarkking - 28.08.2015, 21:20
Re: comando /ask - by iTakelot - 28.08.2015, 21:27
Re: comando /ask - by DKDarkking - 28.08.2015, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)