if(strcmp(cmd, \"/vonszol\", true) == 0) {
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
new suspect = GetClosestPlayer(playerid);
if(PlayerCuffed[suspect] < 2)
{
SendClientMessage(playerid,COLOR_WHITE,\"A Játékos nincs bilincselve!\");
return 1;
}
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
glue_player[playerid] = giveplayerid;
KillTimer(glue_checktmr);
glue_checktmr = SetTimerEx(\"VehicleGlueTimer\",1,1,\"i\",playerid);
} else { SendClientMessage(playerid,COLOR_WHITE,\"Nem vagy elég közel hozzá!\"); }
}
} else { SendClientMessage(playerid,COLOR_WHITE,\"Nem vagy rendõr!\"); }
} else { SendClientMessage(playerid,COLOR_WHITE,\"Elõször jelentkezz be!\"); }
return 1;
}
if(strcmp(cmd, \"/nemvonszol\", true) == 0) {
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
KillTimer(glue_checktmr);
} else { SendClientMessage(playerid,COLOR_WHITE,\"Nem vagy rendõr!\"); }
} else { SendClientMessage(playerid,COLOR_WHITE,\"Elõször jelentkezz be!\"); }
return 1;
}
[/quote]
glue_player[playerid] = giveplayerid;
glue_player[playerid] = suspect;