03.01.2012, 19:37
Isto deve resolver o seu problema
.
Montei os comandos pra vocк
.
Espero ter ajudado
.
![afro](images/smilies/mrgreen.gif)
Montei os comandos pra vocк
![Tongue](images/smilies/razz.gif)
pawn Код:
//Coloque no OnPlayerCommandText:
if(strfind(cmdtext, "/eu", true) == 0)
{
if(cmdtext[3] == 0 || cmdtext[3] == 32)
{
if(cmdtext[3] != 32 || (cmdtext[4] == 0 && cmdtext[3] == 32)) return SendClientMessage(playerid, 0xFFFFFFAA, "Comando: /eu [texto]");
new NickName[MAX_PLAYER_NAME];
new Float:P_Pos[3];
GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
GetPlayerPos(playerid, P_Pos[0], P_Pos[1], P_Pos[2]);
format(cmdtext, 128, "%s %s.", NickName, cmdtext[4]);
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
if(IsPlayerInRangeOfPoint(x, 7.0, P_Pos[0], P_Pos[1], P_Pos[2]))
{
SendClientMessage(x, 0x33CCFFAA, cmdtext);
}
}
return true;
}
}
if(strfind(cmdtext, "/do", true) == 0)
{
if(cmdtext[3] == 0 || cmdtext[3] == 32)
{
if(cmdtext[3] != 32 || (cmdtext[4] == 0 && cmdtext[3] == 32)) return SendClientMessage(playerid, 0xFFFFFFAA, "Comando: /do [aзгo]");
new NickName[MAX_PLAYER_NAME];
new Float:P_Pos[3];
GetPlayerName(playerid, NickName, MAX_PLAYER_NAME);
GetPlayerPos(playerid, P_Pos[0], P_Pos[1], P_Pos[2]);
format(cmdtext, 128, "%s estб fazendo %s.", NickName, cmdtext[4]);
for(new x = 0, y = GetMaxPlayers(); x != y; x++)
{
if(IsPlayerInRangeOfPoint(x, 7.0, P_Pos[0], P_Pos[1], P_Pos[2]))
{
SendClientMessage(x, 0x33CCFFAA, cmdtext);
}
}
return true;
}
}
Espero ter ajudado
![Tongue](images/smilies/razz.gif)