public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, \"Lecsukott\", 0);
return 1;
}
CMD:lecsuk(playerid, params[])
{
if(IsPlayerLAdmin(playerid))
{
new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if(sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [perc] [indok]\");
if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{ffffff}[RENDÕR,%s]:{00bbff} Börtönbe zárta %s -t {b22222}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok);
SendClientMessageToAll(0xB3D5B2AA,string);
ido *= 60000;
SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);
SetPlayerPos(giveplayerid,2199.7134,1224.0686,10.8203);
SetPlayerInterior(giveplayerid, 0);
SetPVarInt(giveplayerid, \"Lecsukott\", 1);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
forward Bortonido(playerid);
public Bortonido(playerid)
{
SpawnPlayer(playerid);
return 1;
}
És akkor ugyan úgy kérdezed le, mint az elõzõ témában.