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 >= 1)
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ip ") &&
SendClientMessage(playerid, orange, "Function: Will see Ip of specified player");
new player1 = strval(params);
new string;
if(AccInfo == ServerInfo && AccInfo != ServerInfo)
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;
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 !
[Pomoc] DCMD-ZCMD
362
pregleda
6
postova
23. Feb. 2013.
23. Feb. 2013.
CMD:ip(playerid,params[])
{
if(AccInfo >= 1)
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ip ") &&
SendClientMessage(playerid, orange, "Function: Will see Ip of specified player");
new player1 = strval(params);
new string;
if(AccInfo == ServerInfo && AccInfo != ServerInfo)
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;
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);
}Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava