Treba mi tazer i cuff komanda (system) nikako da ovo rijesim :D
Malo sam trazio po forumu al nisam uspio nac :) i nervira me to.. nemogu da popravim :s
Pa ako neko ko zna ima vremena da mi to pomogne popravit ;D
Ako treba postat komande koje vec imam samo recite.
Unaprijed hvala ! :-*
pozz
Skini gtarp mod ili bilo koji drugi roleplay i izvadi :-*
Citat: DumbaSs ≡ Ö poslato Decembar 27, 2010, 23:07:26 POSLE PODNE
Treba mi tazer i cuff komanda (system) nikako da ovo rijesim :D
Malo sam trazio po forumu al nisam uspio nac :) i nervira me to.. nemogu da popravim :s
Pa ako neko ko zna ima vremena da mi to pomogne popravit ;D
Ako treba postat komande koje vec imam samo recite.
Unaprijed hvala ! :-*
pozz
pOstaj komandu
JEl tražiš za GF? Ili?
Evo ti tazer komanda:
if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid, COLOR_GREY, " Nemozete koristiti tazer dok ste u autu!");
return 1;
}
if(KnockedDown[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Ne mozete zamahnuti kada ste vec oboreni.");
return 1;
}
if(PlayerTied[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vezani ste!");
return 1;
}
if(ReduceTime[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Morate sacekati 5 sekundi prije ponovnog koriscenja ove komande !");
return 1;
}
new suspect = GetClosestPlayer(playerid);
if(IsPlayerConnected(suspect))
{
if(PlayerCuffed[suspect] > 0)
{
SendClientMessage(playerid, COLOR_GREY, " Igrac je vec tazovan/uhapsen!");
return 1;
}
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
if(gTeam[suspect] == 2)
{
SendClientMessage(playerid, COLOR_GREY, " Ne mozete taznuti PD / FBI!");
return 1;
}
if(IsPlayerInAnyVehicle(suspect))
{
SendClientMessage(playerid, COLOR_GREY, " Osumnjiceni je u autu, prvo ga izbacite!");
return 1;
}
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new randt = random(4)+1;
if(randt == 1)
{
format(string, sizeof(string), "* %s puca sa svojim tazerom na %s-a, ali promasuje.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
format(string, sizeof(string), "* Tazovao vas je %s na 10 sekundi.", sendername);
SendClientMessage(suspect, COLOR_WHITE, string);
format(string, sizeof(string), "* Tazovali ste %s-a na 10 sekundi.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s puca tazerom na %s-a i pogadja ga.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(suspect, "~r~Sokiran", 2500, 3);
TogglePlayerControllable(suspect, 0);
PlayerCuffed[suspect] = 1;
PlayerCuffedTime[suspect] = 15;
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 5000, false, "i", playerid);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nema nikoga u vasoj blizini!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Policajac / FBI!");
}
}//not connected
return 1;
}
Evo Ti Cuff Komanda
if(strcmp(cmd, "/cuff", true) == 0 || strcmp(cmd, "/stavilisice", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
if(KnockedDown[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Ne mozete zamahnuti kada ste vec oboreni.");
return 1;
}
if(PlayerTied[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vezani ste!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /stavilisice [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
{
SendClientMessage(playerid, COLOR_GREY, " Ne mozete staviti lisice Policajcu!");
return 1;
}
if(PlayerCuffed[giveplayerid] > 1)
{
SendClientMessage(playerid, COLOR_GREY, " Igracu su vec stavljene lisice !");
return 1;
}
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Ne mozete staviti lisice sebi!"); return 1; }
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vam je stavio lisice.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Stavili ste lisice %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s stavlja lisice %s-u.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, "~r~Stavljene su vam lisice", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
PlayerCuffed[giveplayerid] = 2;
PlayerCuffedTime[giveplayerid] = 99999999999999;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Taj igrac nije blizu vas !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Igrac je offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Policajac / FBI / SWAT !");
}
}
return 1;
}
Evo Ti UNCUFF komanda
if(strcmp(cmd, "/uncuff", true) == 0 || strcmp(cmd, "/skinilisice", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /skinilisice [ID Igraca/Dio Imena]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Uncuff yourself!"); return 1; }
if(PlayerCuffed[giveplayerid])
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vam je skinuo lisice.", sendername);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Skinuli ste lisice %s-u.", giveplayer);
SendClientMessage(playerid, COLOR_WHITE, string);
GameTextForPlayer(giveplayerid, "~g~Skinute su vam lisice", 2500, 3);
TogglePlayerControllable(giveplayerid, 1);
PlayerCuffed[giveplayerid] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Tome igracu nisu stavljene lisice !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Taj igrac nije blizu vas !");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Taj igrac je offline !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niste Policajac / FBI / SWAT !");
}
}//not connected
return 1;
}
//
Hvala Ryder spasio si me :D
tu sam uvek da pomognem ;) ;)