27.08.2015, 00:08
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 ><
comando q eu fiz ><
PHP код:
CMD:respond(playerid, params[])
{
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;
}