08.11.2009, 07:19
Welcome I am attached to the admin team add code that could be used by a team of level 3 but does not work
codew command admin
sorry i very bad speak english
Renisil
codew command admin
Quote:
dcmd_freeze(playerid, params[]) { if(pInfo[playerid][AdminLevelis] < 2) { new id, priez[128]; if (sscanf(params, "dz", id, priez)) return SendClientMessage(playerid, COLOR_ADMINZALIA, "[Teisingas naudojimas]: /freeze [playerid] [prieћastis]"); if (IsPlayerConnected(id)) { new string[128]; new zaid[128]; GetPlayerName(id,zaid,sizeof(zaid)); format(string,sizeof(string),"[INFO ADMIN]: %s uћљaldytas. (Prieћastis: %s).",zaid, priez); SendClientMessageToAll(COLOR_RAUDONA, string); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); PlayerPlaySound(id,1057,0.0,0.0,0.0); TogglePlayerControllable(id,0); } else { SendClientMessage(playerid, COLOR_ADMINZALIA,"[KLAIDA]: Zaidejas nerastas!"); } } else { SendClientMessage(playerid, COLOR_RAUDONA,"INFO: Tu ne rcon administratorius"); } return 1; } |
Renisil