Convert strtok and strcmp to sscanf and zcmd
#5

Quote:
Originally Posted by PeteShag
Посмотреть сообщение
^^If someone translate that thread(fcmd) to English, Japanese or Greek I would really appreciate it.
(キック、playerid)fcmd
{
(PlayerInfo<1[をpAdminLevel][はplayerid])場合、
(playerid、COLOR_GRAY、"あなたは権限がない")SendClientMessage 返します。

場合(iParamsは、[1]|!|は!iParamsは、[2])
SendClientMessage返す(playerid、COLOR_LIGHTRED、"使用方法:/[ID]を蹴る[理由]");

静的なIDです。
イド= strval(iParams[1]);

(もしあれ!(id)をIsPlayerConnected
SendClientMessage返す(playerid、COLOR_GRAY、"!このプレーヤーは オンラインになっていないAdmCmd");


PlayHintSoundAtPos(playerid);
新しいglobalmsgの[100];
新しいadminid[MAX_PLAYERS] victimid[のMAX_PLAYERS];
GetPlayerName(sizeofはpidを、adminid(victimid));
GetPlayerName(sizeofはidは、victimid(victimid));
フォーマットは(globalmsgは、sizeof(globalmsg):adminid、victi mid、その理由"AdmWarn管理者%sはプレーヤー%は[%sを]のだ蹴りを持つ");
SendClientMessageToAll(COLOR_LIGHTBLUE、globalmsg);
キック(id)の;
trueを返します。
}
Reply


Messages In This Thread
Convert strtok and strcmp to sscanf and zcmd - by admantis - 21.01.2011, 02:12
Re: Convert strtok and strcmp to sscanf and zcmd - by PeteShag - 21.01.2011, 03:15
Respuesta: Convert strtok and strcmp to sscanf and zcmd - by ipsBruno - 21.01.2011, 03:19
Re: Convert strtok and strcmp to sscanf and zcmd - by PeteShag - 21.01.2011, 03:23
Re: Convert strtok and strcmp to sscanf and zcmd - by Marty_Alex - 21.01.2011, 04:39
Re: Convert strtok and strcmp to sscanf and zcmd - by HyperZ - 21.01.2011, 04:39

Forum Jump:


Users browsing this thread: 2 Guest(s)