CMD:maketele(playerid,params[]){new telename[20],Float:posx,Float:posy,Float:posz;if(sscanf(params,\"s[20]\",telename)) return SendClientMessage(playerid,-1,\"Használat: /maketele [teleport neve]\");strcat(telename,\".ini\");if(dini_Exists(telename)) return SendClientMessage(playerid,-1,\"Ez a teleport már létezik\");dini_Create(telename);GetPlayerPos(playerid,posx,posy,posz);dini_FloatSet(telename,\"X\",posx);dini_FloatSet(telename,\"Y\",posy);dini_FloatSet(telename,\"Z\",posz);SendClientMessage(playerid,-1,\"Sikeresen létrehoztad a teleportot!\");return 1;}CMD:tele(playerid,params[]){new telename[20];if(sscanf(params,\"s[20]\",telename)) return SendClientMessage(playerid,-1,\"Használat: /tele [teleport neve]\");strcat(telename,\".ini\");if(!dini_Exists(telename)) return SendClientMessage(playerid,-1,\"Ez a teleport nem létezik\");if(IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid),dini_Float(telename,\"X\"),dini_Float(telename,\"Y\"),dini_Float(telename,\"Z\")),SendClientMessage(playerid,-1,\"Sikeres teleportálás!\");else SetPlayerPos(playerid,dini_Float(telename,\"X\"),dini_Float(telename,\"Y\"),dini_Float(telename,\"Z\")),SendClientMessage(playerid,-1,str),SendClientMessage(playerid,-1,\"Sikeres teleportálás!\");return 1;}CMD:deletele(playerid,params[]){new telename[20];if(sscanf(params,\"s[20]\",telename)) return SendClientMessage(playerid,-1,\"Használat: /deletele [teleport neve]\");strcat(telename,\".ini\");if(!dini_Exists(telename)) return SendClientMessage(playerid,-1,\"Ez a teleport nem létezik\");dini_Remove(telename),SendClientMessage(playerid,-1,\"Sikeresen törölted a teleportot!\");return 1;}
CMD:maketele(playerid,params[]){new telename[20],Float:posx,Float:posy,Float:posz;if(sscanf(params,\"s[20]\",telename)) return SendClientMessage(playerid,-1,\"Használat: /maketele [teleport neve]\");//strcat(telename,\".ini\");GetPlayerPos(playerid,posx,posy,posz);new query[128];format(query,sizeof(query),\"INSERT INTO teles (neve,x,y,z) VALUES (\'%s\',\'%f\',\'%f\',\'%f\')\",telename,posx,posy,posz);mysql_query(query);SendClientMessage(playerid,-1,\"Sikeresen létrehoztad a teleportot!\");return 1;}CMD:tele(playerid,params[]){new telename[20];if(sscanf(params,\"s[20]\",telename)) return SendClientMessage(playerid,-1,\"Használat: /tele [teleport neve]\");new query[128];format(query,sizeof(query),\"SELECT x,y,z FROM teles WHERE name=\'%s\'\",telename);mysql_query(query);mysql_store_result();mysql_fetch_row(query);new values[4];sscanf(query, \"f,f,f\", values);SetPlayerPos(playerid,values[1],values[2],values[3]);mysql_free_result(); SendClientMessage(playerid,-1,\"Sikeres teleportálás\");return 1;}CMD:deletele(playerid,params[]){new telename[20];if(sscanf(params,\"s[20]\",telename)) return SendClientMessage(playerid,-1,\"Használat: /deletele [teleport neve]\");new query[128];format(query,sizeof(query),\"DELETE FROM teles WHERE name=\'%s\'\",telename);mysql_query(query);SendClientMessage(playerid,-1,\"Sikeres törlés!\");return 1;}