if(strcmp(cmd, \"/lampa-elõvesz\", true) == 0){if(IsPlayerConnected(playerid)){ SendClientMessage(playerid,-1,\"Lámpádat elõvetted, bekapcsoláshoz írdbe /lampa be\"); SetPlayerAttachedObject(playerid,2,18641,6,0.08,0.00,0.04,-165.0,0.0,-8.0,1.00,1.00,1.00);}else SendClientMessage(playerid,-1,\"Nem vagy bejelentkezve!\");}
if(strcmp(cmd, \"/lampa-bekapcsol\", true) == 0){if(IsPlayerConnected(playerid)){ ////SetPlayerAttachedObject(playerid,1,18656,6,0.66,0.56,-1.10,95.0,-54.0,0.0,1.00,1.00,1.00); SetPlayerAttachedObject(playerid, 1,18656, 4, 0.1, 0.038, -0.01, -90, 180, 0, 0.03, 0.1, 0.03); SetPlayerAttachedObject(playerid, 2,18641, 4, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1); SendClientMessage(playerid,-1,\"A Lámpát bekapcsoltad kikapcsoláshoz /lampa kikapcsol\");}else SendClientMessage(playerid,-1,\"Nem vagy felcsatlakozva!\");}
if(!strcmp(cmd, \"/lampa-elovesz\", true)){SendClientMessage(playerid,-1,\"Lámpádat elõvetted, bekapcsoláshoz írd be /lampa bekapcsol\"); SetPlayerAttachedObject(playerid,2,18641,6,0.08,0.00,0.04,-165.0,0.0,-8.0,1.00,1.00,1.00); SetPVarInt(playerid, \"Lampa\", 1); return 1;}
if(!strcmp(cmd, \"/lampa-bekapcsol\", true)){////SetPlayerAttachedObject(playerid,1,18656,6,0.66,0.56,-1.10,95.0,-54.0,0.0,1.00,1.00,1.00); if(!GetPVarInt(playerid, \"Lampa\")) return SendClientMessage(playerid, -1, \"{FFFF00}Nem vetted elõ a lámpádat! /lampa-elovesz\"); elseSetPlayerAttachedObject(playerid, 1,18656, 4, 0.1, 0.038, -0.01, -90, 180, 0, 0.03, 0.1, 0.03);SetPlayerAttachedObject(playerid, 2,18641, 4, 0.1, 0.02, -0.05, 0, 0, 0, 1, 1, 1);SendClientMessage(playerid,-1,\"A Lámpát bekapcsoltad kikapcsoláshoz /lampa-kikapcsol\"); return 1;}
if(!strcmp(cmd, \"/lampa-kikapcsol\", true)){ if(!GetPVarInt(playerid, \"Lampa\")) return SendClientMessage(playerid, -1, \"{FFFF00}Nem használod a lámpát!\"); elseif(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1); if(IsPlayerAttachedObjectSlotUsed(playerid, 2)) RemovePlayerAttachedObject(playerid, 2);SendClientMessage(playerid, -1, \"Lámpád kikapcsoltad!\"); SetPVarInt(playerid, \"Lampa\", 0); return 1;}
if(strcmp(cmd, \"/radio-bekapcsol\", true) == 0){if(IsPlayerConnected(playerid)){ new Float:X, Float:Y, Float:Z, Float:Distance = 5.0; GetPlayerPos(playerid, X, Y, Z); PlayAudioStreamForPlayer(playerid, \"http://dl.dropbox.com/s/pk74licjsv8c9yc/Dj%20Blend%20-%20Electro%20House%20%5BPoker%20Face%5D.mp3\", X, Y, Z, Distance, 1); SendClientMessage(playerid,-1,\"A Rádiót bekapcsoltad!\");}else SendClientMessage(playerid,-1,\"Nem vagy bejelentkezve!\");}
new Float:PlayerRadioPos[3];
if(IsPlayerInRangeOfPoint(playerid, 3.0, PlayerRadioPos[0], PlayerRadioPos[1], PlayerRadioPos[2]))