public CheckForWalkingTeleport(playerid)
if (strcmp(\"/enter\", cmdtext, true) == 0){ if(IsPlayerConnected(playerid)){ SendClientMessage(playerid, COLOR_WHITE, \"Kilépéshez használd az /exit parancsot!\"); if(PlayerToPoint(10.0, playerid, 927.2099,-1818.1908,13.3241 )) { SetPlayerInterior(playerid, 11); SetPlayerPos(playerid, 501.980987,-69.150199,998.757812); SendClientMessage(playerid, COLOR_WHITE, \"Köszöntelek a Bárban!\"); }}return 1;}if (strcmp(\"/exit\", cmdtext, true) == 0){ if(IsPlayerConnected(playerid)){ if(PlayerToPoint(10.0, playerid, 501.980987,-69.150199,998.757812)) { SetPlayerInterior(playerid, 0); SetPlayerPos(playerid, 927.2099,-1818.1908,13.3241); SendClientMessage(playerid, COLOR_WHITE, \"Gyere máskor is!\"); }}return 1;}
public CheckForWalkingTeleport(playerid)ebböl 1 DB volt és alatta a teleportok most mindegyikhez másoljam be a /enter /exit-et?ugyanis több mint 100 teleport van only put teleports ON FOOT here, use another function for vehicle ones - luk0r/* * HOW TO USE THIS FUNCTION: * * Just use your normal PlayerToPoint functions but make them use PlayerToPointStripped instead. * Use the arguments cx,cy,cz at the end of each call (look at the others for an example). * */new Float:cx, Float:cy, Float:cz;GetPlayerPos(playerid, cx, cy, cz);if(PlayerToPointStripped(1, playerid,1554.9537,-1675.6584,16.1953, cx,cy,cz)){//LSPD Entrance GameTextForPlayer(playerid, \"~w~Police Department\", 5000, 1); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid,246.7079,66.2239,1003.6406); PlayerInfo[playerid][pInt] = 6;}else if(PlayerToPointStripped(1, playerid,246.5325,62.4251,1003.6406, cx,cy,cz)){//LSPD Exit GameTextForPlayer(playerid, \"~w~Los Santos\", 5000, 1); SetPlayerInterior(playerid, 0); SetPlayerPos(playerid,1552.3231,-1674.6780,16.1953); PlayerInfo[playerid][pInt] = 0;}else if (PlayerToPointStripped(1.0, playerid,488.2531,-82.7632,998.7578, cx,cy,cz)){ //Misty/10 Green Toilets SetPlayerPos(playerid,2277.5942,-1139.8883,1050.8984); GameTextForPlayer(playerid, \"~w~Restroom\", 5000, 3); SetPlayerInterior(playerid,11); PlayerInfo[playerid][pInt] = 11;}