Üdv mi lehet a baja?
4 errort ír.
Script:
CMD:cuff(playerid, params[])
{
if(PlayerInfo[playerid][pLeader]==1 || PlayerInfo[playerid][pMember]==1)
{
if(GetPVarInt(playerid, \"Injured\") == 1)
{
SendClientMessage(playerid, COLOR_GREY, \"Most nem!\");
return 1;
}
new string[128], giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, \"Használat: /cuff [playerid]\");
if(IsPlayerConnected(giveplayerid))
{
if (ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, \"Magadat?ne legyél ilyen Powa..!\"); return 1; }
if(PlayerCuffed[giveplayerid] == 1 || GetPlayerSpecialAction(giveplayerid) == SPECIAL_ACTION_HANDSUP)
{
format(string, sizeof(string), \"* Meg Lettél Bilincselve %s Általl.\", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"* Levették Rólad a bilincset.\", GetPlayerNameEx(giveplayerid));
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"* %s Rárakta %s-ra a Bilincset.\", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(giveplayerid, \"~r~Megbilincselve\", 2500, 3);
TogglePlayerControllable(giveplayerid, 0);
ClearAnimations(giveplayerid);
ApplyAnimation(giveplayerid,\"ped\",\"cower\",1,1,0,0,0,0,1);
PlayerCuffed[giveplayerid] = 2;
SetPVarInt(giveplayerid, \"PlayerCuffed\", 2);
SetPVarInt(giveplayerid, \"IsFrozen\", 1);
//Frozen[giveplayerid] = 1;
PlayerCuffedTime[giveplayerid] = 999999;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, \"Na Ne!\");
return 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, \"Nincs a Közeledben.\");
return 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, \"Helytelen Játékos ID.\");
return 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, \"Nem vagy rendvédelem tagja.\");
}
return 1;
}