LuxurY forum (scripting SA-MP)

Объявление

с 29 марта 2007 года
LuxurY forum - крупнейший российский форум скриптинга в PAWNO
Новый форум
Задавайте свои вопросы

Архив скриптов


Наша кнопка:
LuxurY forum :: Scripting SA-MP
Код:

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.



prablema z kamanday

Сообщений 1 страница 3 из 3

1

pazalusta pamagite vot kuso4ek s filterskripta (adminki) kakda ya zahazu na server pishu /server on mne unkov koman ili kakta tak a kakda zdelaui /rcon loginin xxxxx to kamanda /server rabotaet vapros kak zdelat 4tobu pisala You are not Administrator. kakfa ne zashol kak admin? probuval stavit mezdu strokami

if(!IsPlayerAdmin(playerid)) return 0;
SystemMsg(playerid,"You are not Administrator.");
if(PLAYER_Menu[playerid] != 0) return SystemMsg(playerid,"(AdmiN) Close the other menu before");

ne rabotaet  a vot vnezu samoy kod bez straki SystemMsg(playerid,"You are not Administrator.");

dcmd_server(const playerid, const params[]){
#pragma unused params
if(!IsPlayerAdmin(playerid)) return 0;
if(PLAYER_Menu[playerid] != 0) return SystemMsg(playerid,"(AdmiN) Close the other menu before");
ShowServerMenu(playerid);
return 1;
}

dcmd_player(const playerid, const params[]){
if(!IsPlayerAdmin(playerid)) return 0;
if(PLAYER_Menu[playerid] != 0) return SystemMsg(playerid,"(AdmiN) Close the other menu before");
new index = 0;
new giveplayerid;
    giveplayerid = ReturnUser(strtok(params,index));
    if(giveplayerid == INVALID_PLAYER_ID) return SystemMsg(playerid,"(AdmiN) Cant find the player.");
PLAYER_giveplayerid[playerid] = giveplayerid;
ShowPlayerMenu(playerid);
return 1;
}

budu o4en blagadaren yesli pamozete  :rolleyes:

0

2

prastite za temu no prablemu sam reshul prosta ne verna pastavil systemmsg  ;) vot kamu mozet panadabetsa premer

dcmd_server(const playerid, const params[]){
#pragma unused params
if(!IsPlayerAdmin(playerid)) return SystemMsg(playerid,"You are not Administrator.");
if(PLAYER_Menu[playerid] != 0) return SystemMsg(playerid,"(AdmiN) Close the other menu before");
ShowServerMenu(playerid);
return 1;
}

dcmd_player(const playerid, const params[]){
if(!IsPlayerAdmin(playerid)) return SystemMsg(playerid,"You are not Administrator.");
if(PLAYER_Menu[playerid] != 0) return SystemMsg(playerid,"(AdmiN) Close the other menu before");
new index = 0;
new giveplayerid;
    giveplayerid = ReturnUser(strtok(params,index));
    if(giveplayerid == INVALID_PLAYER_ID) return SystemMsg(playerid,"(AdmiN) Cant find the player.");
PLAYER_giveplayerid[playerid] = giveplayerid;
ShowPlayerMenu(playerid);
return 1;
}

0

3

это делается вот так

Код:
if(!IsPlayerAdmin(playerid)) 
{
   SystemMsg(playerid,"You are not Administrator.");
   return 1;
}

Отредактировано Evgeniy (2007-11-05 17:04:57)

0