• Страница 1 из 1
  • 1
Модератор форума: dr40  
помогите мне!!!!
MACLARENДата: Пятница, 30.07.2010, 18:58 | Сообщение # 1
.::Offline::.
Новичок
Сообщений: 2
[ 3 ]
Награды: 0

Статус отсутствует
когда пишу эту команду /adjust мне пишет , Вы не входите в семью
вот код

if(strcmp(cmd, "/adjust", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFMember] == 255)
{
SendClientMessage(playerid, COLOR_GREY, " Au ia aoiaeoa a Naiu? !");
return 1;
}
new family = PlayerInfo[playerid][pFMember];
new wstring[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s", sendername);
strmid(wstring, string, 0, strlen(string), 255);
if(strcmp(FamilyInfo[family][FamilyLeader],wstring, true ) == 0 )
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "Eniieucoe: /adjust [name]");
SendClientMessage(playerid, COLOR_WHITE, "Available Names: Name, MOTD, Color, Spawn, Invite, Uninvite, Rank");
return 1;
}
if(strcmp(x_nr,"name",true) == 0)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Eniieucoe: /adjust Name [Family Name]");
return 1;
}
strmid(FamilyInfo[family][FamilyName], result, 0, strlen(result), 255);
SaveFamilies();
SendClientMessage(playerid, COLOR_WHITE, ".Au io?aaaeoe?iaaee Eiy aaoae Naiue.");
}
else if(strcmp(x_nr,"motd",true) == 0)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Eniieucoe: /adjust MOTD [Family MOTD Text]");
return 1;
}
strmid(FamilyInfo[family][FamilyMOTD], result, 0, strlen(result), 255);
SaveFamilies();
SendClientMessage(playerid, COLOR_WHITE, ".Au io?aaaeoe?iaaee MOTD aaoae Naiue.");
}
else if(strcmp(x_nr,"color",true) == 0)
{
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Eniieucoe: /adjust color [Family Color Sample: 0xFFFFFFAA]");
return 1;
}
if(offset < 10)
{
SendClientMessage(playerid, COLOR_GREY, " .Iai?aaeeuiue iiia? Oaaoa, niio?eoa ia Ia?acao ! (0xFFFFFFAA)");
return 1;
}
strmid(FamilyInfo[family][FamilyMOTD], result, 0, strlen(result), 255);
SaveFamilies();
SendClientMessage(playerid, COLOR_WHITE, ".Au io?aaaeoe?iaaee Oaao aaoae Naiue.");
}
else if(strcmp(x_nr,"spawn",true) == 0)
{
GetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
GetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
FamilyInfo[family][FamilyInterior] = GetPlayerInterior(playerid);
SaveFamilies();
SendClientMessage(playerid, COLOR_WHITE, ".Au io?aaaeoe?iaaee ianoi iiyaeaiey aaoae Naiue.");
}
else if(strcmp(x_nr,"invite",true) == 0)
{
if(FamilyInfo[family][FamilyMembers] >= 10)
{
SendClientMessage(playerid, COLOR_GREY, " .Aaoa Naiuy ainoeaea Iaeneioia-10 ?eaiia naiue, au ia ii?ao i?eaeaneou aieuoa !");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "Eniieucoe: /adjust invite [ea]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pFMember] != 255)
{
SendClientMessage(playerid, COLOR_GREY, " .Yoi ea?ie iaoiaeony o?a a Naiua !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Au i?eaeaneee %s i?eniaaeiyouny '%s'.",giveplayer, FamilyInfo[family][FamilyName]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s i?eaeanee Aan i?eniaaeiyouny '%s', Au - oaia?u ?eai naiue.",sendername, FamilyInfo[family][FamilyName]);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pFMember] = family;
PlayerInfo[giveplayerid][pRank] = 1;
FamilyInfo[family][FamilyMembers] ++;
SaveFamilies();
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " .Yoiai ea?iea iaoo ia na?aa?a !");
return 1;
}
}
else if(strcmp(x_nr,"uninvite",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "Eniieucoe: /adjust uninvite [ea]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pFMember] != family)
{
SendClientMessage(playerid, COLOR_GREY, " .Yoio ea?ie ia yaeyaony ?eaiii aaoae Naiua !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* .Au auaiaee %s ec aaoae Naiue.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* .Eeaa? Naiue %s auaiae aan ec Naiue.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pFMember] = 255;
PlayerInfo[giveplayerid][pRank] = 0;
FamilyInfo[family][FamilyMembers] --;
SaveFamilies();
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " .Yoiai ea?iea iaoo ia na?aa?a !");
return 1;
}
}
else if(strcmp(x_nr,"rank",true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "Eniieucoe: /adjust rank [RankNr] [ea]");
return 1;
}
new rank = strval(tmp);
if(rank < 1 || rank > 6) { SendClientMessage(playerid, COLOR_GREY, " .?aia ii?ao auou io 1 ai 6 !"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
SendClientMessage(playerid, COLOR_WHITE, "Eniieucoe: /adjust rank [RankNr] [ea]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pFMember] != family)
{
SendClientMessage(playerid, COLOR_GREY, " .Yoio ea?ie ia yaeyaony ?eaiii aaoae Naiua !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* .Au aaee %s ?aia %d.",giveplayer,rank);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* .Eeaa? Neiue %s aae aai ?aia %d.",sendername,rank);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pRank] = rank;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " .Yoiai ea?iea iaoo ia na?aa?a !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " .Iai?aaaeuii io?aaaeoe?iaaii eiy !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Au ia Eeaa? aaoae Naiue !");
return 1;
}
}
return 1;
}
 
MACLARENДата: Суббота, 31.07.2010, 15:00 | Сообщение # 2
.::Offline::.
Новичок
Сообщений: 2
[ 3 ]
Награды: 0

Статус отсутствует
valych
конешно сделал
 
  • Страница 1 из 1
  • 1
Поиск:


Copyright www.SAMP-TEAM.com (c) 2009-2024
Правила использования материалов сайта

При копировании материалов из нашего сайта
ссылка на www.SAMP-TEAM.com обязательна!
Нарушители правил будут строго наказаны!

Хостинг от uCoz   
Для корректного просмотра мы рекомендуем Вам использовать браузер Google Chrome.
Яндекс.Метрика
Яндекс.Метрика