[Ajuda]comando/irajuda.
#2

O meu problema no /senha й que nгo tem o settimer de espera, muita coisa bugada no meu GM por falta do settimer, todos os tutoriais que tem й dificil de aprender, hahaha.. Tente isso

new pname[20];
new msgadmins[128];

GetPlayerName(playerid, pname, sizeof(pname));

Quote:

if(strcmp(cmd, "/pajuda", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAge] == 0){
PlayerInfo[playerid][pAge] = 1;
{
SendClientMessage(playerid, COLOR_RED, "Vocк pediu Ajuda. Aguarde um Administrador te ajudar.");
format(msgadmins, sizeof(msgadmins), "%s [%d] Estб pedindo ajuda!! Vб atй ele...", pname,playerid);

}
}else{
}
}
}

No meu GM ainda tem isto, tente usar pra ver se arruma se der erro, hahaha..
na maioria das vezes й o string que usa, eu vejo em quase todos os codigos o string tipo esse codigo, espero que tenha ajudado, haha..

format(string, sizeof(string), "O Administrador %s baniu o jogador %s - Motivo: %s [%d/%d/%d]", aname, pname,result,month,day,year);


Quote:

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, Yellow, msgadmins);
}
}
}
return 1;
}
return 0;
}

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

Reply


Messages In This Thread
[Ajuda]comando/irajuda. - by akZ - 03.07.2011, 04:06
Re: [Ajuda]comando/irajuda. - by Sr.Pekeno - 03.07.2011, 04:33
Re: [Ajuda]comando/irajuda. - by Nake01 - 03.07.2011, 04:35
Re: [Ajuda]comando/irajuda. - by Falcon. - 03.07.2011, 04:37
Re: [Ajuda]comando/irajuda. - by Sr.Pekeno - 03.07.2011, 04:39
Re: [Ajuda]comando/irajuda. - by Dark.Angel - 03.07.2011, 04:40
Re: [Ajuda]comando/irajuda. - by Falcon. - 03.07.2011, 04:47
Re: [Ajuda]comando/irajuda. - by [FTC]Scorpion - 03.07.2011, 07:35
Re: [Ajuda]comando/irajuda. - by Sr.Pekeno - 03.07.2011, 08:02
Re: [Ajuda]comando/irajuda. - by Ricop522 - 03.07.2011, 15:20

Forum Jump:


Users browsing this thread: 2 Guest(s)