08.04.2010, 14:01
pawn Code:
if(dialogid == 5)
{
GetPlayerPos(ClickedPlayer[playerid], x[playerid], y[playerid], z[playerid]);
Cage0[playerid] = CreateObject(985, x[playerid], y[playerid]+4, z[playerid], 0.0, 0.0, 0.0);
Cage1[playerid] = CreateObject(985, x[playerid]+4, y[playerid], z[playerid], 0.0, 0.0, 90.0);
Cage2[playerid] = CreateObject(985, x[playerid]-4, y[playerid], z[playerid], 0.0, 0.0, 270.0);
Cage3[playerid] = CreateObject(985, x[playerid], y[playerid]-4, z[playerid], 0.0, 0.0, 180.0);
Caged[playerid] = 1;
new time = strval(inputtext);
SetTimerEx("Uncage", false, 60000*time, "i", playerid);
TogglePlayerControllable(playerid, 1);
new string[128];
format(string, sizeof(string), "Administrator %s has caged %s for %d minutes.", adminname, name, time);
return 1;
}