07.11.2015, 06:29
Nothing happends when i click on the textdraw mabye u can help me?
PHP код:
if(clickedid == teleportLS) // If the player clicked on the teleportLS textdraw, teleport him there!
{
SetPlayerPos(playerid, 1736.4478,-1789.5996,13.4922);
SetPlayerFacingAngle(playerid, 0.9392);
}
else if(clickedid == teleportSF) // Same as above, but for SF
{
SetPlayerPos(playerid, -1424.6083, -290.9622, 14.1484);
SetPlayerFacingAngle(playerid, 134.9570);
}
else if(clickedid == teleportLV) // Same, but for LV
{
SetPlayerPos(playerid, 1688.7990, 1447.7753, 10.7675);
SetPlayerFacingAngle(playerid, 267.3902);
}
// Hide the textdraws after the player has teleport himself.
TextDrawHideForPlayer(playerid, teleportBox);
TextDrawHideForPlayer(playerid, teleportLS);
TextDrawHideForPlayer(playerid, teleportSF);
TextDrawHideForPlayer(playerid, teleportLV);
CancelSelectTextDraw(playerid); // Everything worked out perfectly, now stop the player to be able to select shizzle.