if(strcmp(cmd, \"/vonszol\", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1
{
if(PlayerInfo[playerid][pRank] == 1) { SendClientMessage(playerid, COLOR_GRAD2,\"Százados Rang nem vonszolhatsz!\"); return 1; }
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_GRAD2, \"HASZNÁLAT: /cipel [JátékosID/NévRészlet]\");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if (GetDistanceBetweenPlayers(playerid,giveplayerid) < 3)
{
if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GRAD2, \"Magadat nem tudod vonszolni!\"); return 1; }
if(PlayerCuffed[giveplayerid] == 2)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), \"%s elkezdett vonszolni.\", sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"Vonszolod %s.\", (giveplayer,3));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), \"* %s elkezdte vonszolni %s.\", sendername ,(giveplayer,3));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
PlayerInfo[playerid][vonszol] = 1;
PlayerInfo[giveplayerid][vonszol] = 2+playerid;
} else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nincs megbilincselve!\");
} else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nincs a közeledben!\");
} else SendClientMessage(playerid, COLOR_GRAD2, \"A játékos nem elérhetõ!\");
}
} else SendClientMessage(playerid, COLOR_GRAD2, \"Nem vagy rendõr!\");
} return 1;
}
ki irja hogy vonszolja de sehol semmi -. :d