if(strcmp(tmp, "q", true) == 0 || strcmp(tmp, "quit", true) == 0)
{
if(activity == 0) return SendClientMessage(playerid, White, "айп фтймеъ оефтмъ");
if(ActQ == 0) return SendClientMessage(playerid, White, "лбш йцаъ одфтймеъ");
SpawnPlayer(playerid);
SendClientMessage(playerid,0xd11111ff,"йцаъ одфтймеъ емлп щевшъ");
ActQ = 0;
return 1;
}
new ActQ[MAX_PLAYERS];
if(strcmp(tmp, "q", true) == 0 || strcmp(tmp, "quit", true) == 0)
{
if(activity == 0) return SendClientMessage(playerid, White, "айп фтймеъ оефтмъ");
if(ActQ[playerid] == 0) return SendClientMessage(playerid, White, "лбш йцаъ одфтймеъ");
SpawnPlayer(playerid);
SendClientMessage(playerid,0xd11111ff,"йцаъ одфтймеъ емлп щевшъ");
ActQ[playerid] = 0;
return 1;
}
now ..
Me this is work but if I no do the command and the player do the command its write him : You Can Not ........ And me this is work WHY? |
if(strcmp(tmp, "start", true) == 0 || strcmp(tmp, "s", true) == 0)
{
if(GetAdminLevel(playerid) < 1 && !IsPlayerAdmin(playerid) && GetAdminSpay(playerid) < 1 && GetTempAdminLevel(playerid) < 1) return SendClientMessage(playerid, White, "шоъ дрйдем щмк роелд");
if(activity == 1) return SendClientMessage(playerid, White, "йщ фтймеъ оефтмъ , злд щъсъййн");
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[256];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result)) return SendClientMessage(playerid, yellow, "/Activity Start [ActivityName] :цешъ щйоещ");
format(string1, sizeof(string1),"дфтймеъ %s дефтмд тм йгй дазшай фтймейеъ/дордм",(result),GetName(playerid));
SendClientMessageToAll(0xff0000ff,string1);
SendClientMessageToAll(0xff0000ff,"/Activity дщйвешйн мфтймеъ рфъзе аеиеоийъ - лгй мшаеъ фчегеъ ресфеъ мфтймеъ");
GameTextForAll("~r~Activity ~b~Start~<~",20,1);
activity = 1;
format(string1, sizeof(string1),"%s", (result));
ActiveName = string1;
format(string1, sizeof(string1),"%s", GetName(playerid));
PlayerName = string1;
ActivityTeleports = 1;
return 1;
}
}
if(strcmp(tmp, "q", true) == 0 || strcmp(tmp, "quit", true) == 0)
{
if(activity == 0) return SendClientMessage(playerid, White, "айп фтймеъ оефтмъ");
if(ActQ[playerid] == 0) return SendClientMessage(playerid, White, "лбш йцаъ одфтймеъ");
SpawnPlayer(playerid);
SendClientMessage(playerid,0xd11111ff,"йцаъ одфтймеъ емлп щевшъ");
ActQ[playerid] = 0;
return 1;
}