05.01.2012, 21:17
Miren, estoy armando un server en inglees y tengo problemas con 2 comandos
Uno es admin say y otro es un mensaje para el team (Server tdm )
Lo que pasa es: El comando andaa perfectoo pero al actuar el comando actua la funcion del return 0 en onplayercommandperformance...
Por que ? Me dice que el cmd no existe pero a la vez anda :/
Uno es admin say y otro es un mensaje para el team (Server tdm )
pawn Код:
CMD:t(playerid, params[])
{
foreach(Player, i)
{
if(gTeam[i] == gTeam[playerid])
{
new string[128], pName[24];
GetPlayerName(playerid,pName,24);
format(string,sizeof(string),"TeamChat: %s says: %s",pName,params);
SendClientMessage(i, YELLOW, string);
}
}
return 0;
}
CMD:asay(playerid, params[])
{
foreach(Player, i)
{
if(PlayerInfo[playerid][Adminlevel] < 1) return SendClientMessage(playerid,COLOR_RED,".:: You are not authorized to use this command ::.");
{
new string[128], pName[24];
GetPlayerName(playerid,pName,24);
format(string,sizeof(string),"{00FF00}<!>- Administrator %s says: %s -<!>",pName,params);
SendClientMessage(i, YELLOW, string);
}
}
return 0;
}
Por que ? Me dice que el cmd no existe pero a la vez anda :/