Skripta koju koristim: ZCMD-kom
Detaljan opis problema: Ovako kako se moze konvertat ili nekako izmjenuti iz dcmd u zcmd. Molim objasnjenje
Dio skripte: dcmd_ip(playerid,params[])
{
if(AccInfo[playerid][Level] >= 1)
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ip [PlayerID]") &&
SendClientMessage(playerid, orange, "Function: Will see Ip of specified player");
new player1 = strval(params);
new string[128];
if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
{
SendCommandToAdmins(playerid,"Ip");
new tmp3[50];
GetPlayerIp(player1,tmp3,50);
format(string,sizeof(string),"PlayerName: %s | IP: %s", pName(player1), tmp3);
return SendClientMessage(playerid,yellow,string);
}
else return ErrorMessages(playerid, 2);
}
else return ErrorMessages(playerid, 1);
}
Znaci treba mi da ih convertam ili kako se to vec "zove" ili radi !
CMD:ip(playerid,params[])
{
if(AccInfo[playerid][Level] >= 1)
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ip [PlayerID]") &&
SendClientMessage(playerid, orange, "Function: Will see Ip of specified player");
new player1 = strval(params);
new string[128];
if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
{
SendCommandToAdmins(playerid,"Ip");
new tmp3[50];
GetPlayerIp(player1,tmp3,50);
format(string,sizeof(string),"PlayerName: %s | IP: %s", pName(player1), tmp3);
return SendClientMessage(playerid,yellow,string);
}
else return ErrorMessages(playerid, 2);
}
else return ErrorMessages(playerid, 1);
}
aaaa tigre mozes mi objasniti kak osi to uradio ?
a skontaj naziv komande kod tebe u kodu i kod mene u kodu i videces
Skonda Pukni lock ! i Tnx ti :D
problem resen, lock